depot/third_party/nixpkgs/pkgs/servers/monitoring/newrelic-sysmond/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

27 lines
832 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "newrelic-sysmond";
version = "2.3.0.132";
src = fetchurl {
url = "https://download.newrelic.com/server_monitor/archive/${version}/newrelic-sysmond-${version}-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 = with lib; {
description = "System-wide monitoring for newrelic";
homepage = "https://newrelic.com/";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
platforms = platforms.linux;
maintainers = with maintainers; [ lnl7 ];
};
}