summary refs log tree commit diff
path: root/pkgs/os-specific/linux/lm-sensors
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2021-09-28 11:00:15 -0400
committerGitHub <noreply@github.com>2021-09-28 11:00:15 -0400
commit6b740f441f205f4b5e8695e4809fabee9afd8a8b (patch)
tree6b193828883dbac81ffc11df2ce6de4ac38c6ea5 /pkgs/os-specific/linux/lm-sensors
parent62eff2592ca6324546ed8745f440f4959307dc27 (diff)
downloadnixpkgs-6b740f441f205f4b5e8695e4809fabee9afd8a8b.tar
nixpkgs-6b740f441f205f4b5e8695e4809fabee9afd8a8b.tar.gz
nixpkgs-6b740f441f205f4b5e8695e4809fabee9afd8a8b.tar.bz2
nixpkgs-6b740f441f205f4b5e8695e4809fabee9afd8a8b.tar.lz
nixpkgs-6b740f441f205f4b5e8695e4809fabee9afd8a8b.tar.xz
nixpkgs-6b740f441f205f4b5e8695e4809fabee9afd8a8b.tar.zst
nixpkgs-6b740f441f205f4b5e8695e4809fabee9afd8a8b.zip
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.
Diffstat (limited to 'pkgs/os-specific/linux/lm-sensors')
-rw-r--r--pkgs/os-specific/linux/lm-sensors/default.nix4
1 files changed, 3 insertions, 1 deletions
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 = [