From 6b740f441f205f4b5e8695e4809fabee9afd8a8b Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Tue, 28 Sep 2021 11:00:15 -0400 Subject: 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. --- pkgs/os-specific/linux/lm-sensors/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkgs/os-specific/linux/lm-sensors/default.nix') diff --git a/pkgs/os-specific/linux/lm-sensors/default.nix b/pkgs/os-specific/linux/lm-sensors/default.nix index fda11400e8f..3590f87e37a 100644 --- a/pkgs/os-specific/linux/lm-sensors/default.nix +++ b/pkgs/os-specific/linux/lm-sensors/default.nix @@ -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 = [ -- cgit 1.4.1