lm_sensors: fix cross-compilation
This commit is contained in:
parent
372884ffa5
commit
cba24b487e
|
@ -18,8 +18,12 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [ perl ]
|
buildInputs = [ perl ]
|
||||||
++ stdenv.lib.optional sensord rrdtool;
|
++ stdenv.lib.optional sensord rrdtool;
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=${placeholder "out"}" "ETCDIR=${placeholder "out"}/etc" ]
|
makeFlags = [
|
||||||
++ stdenv.lib.optional sensord "PROG_EXTRA=sensord";
|
"PREFIX=${placeholder "out"}"
|
||||||
|
"ETCDIR=${placeholder "out"}/etc"
|
||||||
|
"CC=${stdenv.cc.targetPrefix}cc"
|
||||||
|
"AR=${stdenv.cc.targetPrefix}ar"
|
||||||
|
] ++ stdenv.lib.optional sensord "PROG_EXTRA=sensord";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://hwmon.wiki.kernel.org/lm_sensors";
|
homepage = "https://hwmon.wiki.kernel.org/lm_sensors";
|
||||||
|
|
Loading…
Reference in New Issue