summary refs log tree commit diff
path: root/pkgs/servers/monitoring/newrelic-sysmond/default.nix
blob: 8c19eebe2ac25111159d0db8a82104e212fd9d5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl }:

assert stdenv.system == "x86_64-linux";

stdenv.mkDerivation rec {
  name = "newrelic-sysmond-2.3.0.132";

  src = fetchurl {
    url = "http://download.newrelic.com/server_monitor/release/newrelic-sysmond-2.3.0.132-linux.tar.gz";
    sha256 = "0cdvffdsadfahfn1779zjfawz6l77awab3g9mw43vsba1568jh4f";
  };

  installPhase = ''
    mkdir -p $out/bin
    install -v -m755 daemon/nrsysmond.x64 $out/bin/nrsysmond
    patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
      $out/bin/nrsysmond
  '';

  meta = {
    homepage = http://newrelic.com/;

    description = "System-wide monitoring for newrelic";

    license = stdenv.lib.licenses.unfree;
  };
}