mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
netdata: use lm_sensors only on Linux in postFixup step (#411313)
This commit is contained in:
commit
ae903ee043
1 changed files with 3 additions and 1 deletions
|
@ -239,7 +239,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
wrapProgram $out/bin/netdata-claim.sh --prefix PATH : ${lib.makeBinPath [ openssl ]}
|
wrapProgram $out/bin/netdata-claim.sh --prefix PATH : ${lib.makeBinPath [ openssl ]}
|
||||||
wrapProgram $out/libexec/netdata/plugins.d/cgroup-network-helper.sh --prefix PATH : ${lib.makeBinPath [ bash ]}
|
wrapProgram $out/libexec/netdata/plugins.d/cgroup-network-helper.sh --prefix PATH : ${lib.makeBinPath [ bash ]}
|
||||||
wrapProgram $out/bin/netdatacli --set NETDATA_PIPENAME /run/netdata/ipc
|
wrapProgram $out/bin/netdatacli --set NETDATA_PIPENAME /run/netdata/ipc
|
||||||
substituteInPlace $out/lib/netdata/conf.d/go.d/sensors.conf --replace-fail '/usr/bin/sensors' '${lm_sensors}/bin/sensors'
|
${lib.optionalString (stdenv.hostPlatform.isLinux) ''
|
||||||
|
substituteInPlace $out/lib/netdata/conf.d/go.d/sensors.conf --replace-fail '/usr/bin/sensors' '${lm_sensors}/bin/sensors'
|
||||||
|
''}
|
||||||
|
|
||||||
# Time to cleanup the output directory.
|
# Time to cleanup the output directory.
|
||||||
unlink $out/sbin
|
unlink $out/sbin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue