1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 09:31:01 +00:00
nixpkgs/pkgs/servers/monitoring/newrelic-sysmond/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

27 lines
769 B
Nix

{ 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 stdenv.lib; {
description = "System-wide monitoring for newrelic";
homepage = https://newrelic.com/;
license = licenses.unfree;
platforms = platforms.linux;
maintainers = with maintainers; [ lnl7 ];
};
}