1
0
Fork 1
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:
Samuel Dionne-Riel 2021-09-28 11:00:15 -04:00 committed by GitHub
parent 62eff2592c
commit 6b740f441f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = [