netdata: Fix netdata-claim.sh (#127381)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
launchpad/nixpkgs/master
Leo Gaskin 3 years ago committed by GitHub
parent 84a79c2f0f
commit 0a35c838b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      pkgs/tools/system/netdata/default.nix

@ -1,4 +1,4 @@
{ lib, stdenv, callPackage, fetchFromGitHub, autoreconfHook, pkg-config
{ lib, stdenv, callPackage, fetchFromGitHub, autoreconfHook, pkg-config, makeWrapper
, CoreFoundation, IOKit, libossp_uuid
, nixosTests
, curl, libcap, libuuid, lm_sensors, zlib
@ -27,7 +27,7 @@ in stdenv.mkDerivation rec {
fetchSubmodules = true;
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper ];
buildInputs = [ curl.dev zlib.dev ]
++ optionals stdenv.isDarwin [ CoreFoundation IOKit libossp_uuid ]
++ optionals (!stdenv.isDarwin) [ libcap.dev libuuid.dev ]
@ -79,7 +79,7 @@ in stdenv.mkDerivation rec {
];
postFixup = ''
rm -r $out/sbin
wrapProgram $out/bin/netdata-claim.sh --prefix PATH : ${lib.makeBinPath [ openssl ]}
'';
passthru.tests.netdata = nixosTests.netdata;

Loading…
Cancel
Save