mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
lm_sensors: fix for cross compilation (#139577)
Without this change, `sbin/fancontrol` would refer to `#!/bin/bash` in cross-compiled `lm_sensor` package, which is wrong.
This commit is contained in:
parent
62eff2592c
commit
6b740f441f
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, bash
|
||||
, bison
|
||||
, flex
|
||||
, which
|
||||
|
@ -24,7 +25,8 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
nativeBuildInputs = [ bison flex which ];
|
||||
buildInputs = [ perl ]
|
||||
# bash is required for correctly replacing the shebangs in all tools for cross-compilation.
|
||||
buildInputs = [ bash perl ]
|
||||
++ lib.optional sensord rrdtool;
|
||||
|
||||
makeFlags = [
|
||||
|
|
Loading…
Reference in a new issue