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

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Leo Gaskin 2021-06-20 17:59:34 +02:00 committed by GitHub
parent 84a79c2f0f
commit 0a35c838b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;