Unverified Commit ae903ee0 authored by Maciej Krüger's avatar Maciej Krüger Committed by GitHub
Browse files

netdata: use lm_sensors only on Linux in postFixup step (#411313)

parents fb817c72 cb731c65
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -239,7 +239,9 @@ stdenv.mkDerivation (finalAttrs: {
    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/bin/netdatacli --set NETDATA_PIPENAME /run/netdata/ipc
    ${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.
    unlink $out/sbin