nixpkgs/pkgs/servers/monitoring/newrelic-sysmond/default.nix

27 lines
777 B
Nix
Raw Normal View History

2014-12-22 23:13:08 +03:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
2016-07-19 00:03:30 +03:00
name = "newrelic-sysmond-${version}";
version = "2.3.0.132";
2014-12-22 23:13:08 +03:00
src = fetchurl {
2016-07-19 00:03:30 +03:00
url = "http://download.newrelic.com/server_monitor/archive/${version}/newrelic-sysmond-${version}-linux.tar.gz";
2016-07-18 23:18:05 +03:00
sha256 = "0cdvffdsadfahfn1779zjfawz6l77awab3g9mw43vsba1568jh4f";
2014-12-22 23:13:08 +03:00
};
installPhase = ''
mkdir -p $out/bin
install -v -m755 daemon/nrsysmond.x64 $out/bin/nrsysmond
2014-12-26 20:28:15 +03:00
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
2014-12-22 23:13:08 +03:00
$out/bin/nrsysmond
'';
2016-07-19 00:03:30 +03:00
meta = with stdenv.lib; {
2014-12-22 23:13:08 +03:00
description = "System-wide monitoring for newrelic";
2016-07-19 00:03:30 +03:00
homepage = http://newrelic.com/;
license = licenses.unfree;
platforms = platforms.linux;
maintainers = with maintainers; [ lnl7 ];
2014-12-22 23:13:08 +03:00
};
}