summary refs log tree commit diff
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-01-13 21:15:08 +0200
committerArtturin <Artturin@artturin.com>2023-01-13 21:15:08 +0200
commit221ef67e1c12f3c374ec0737445e1a62fa6f6806 (patch)
tree3155366b797fd919216468ae1ec6b1f575086f12
parent567e81c3630a8b69d6494b109c0da5072f7bb5b7 (diff)
downloadnixpkgs-221ef67e1c12f3c374ec0737445e1a62fa6f6806.tar
nixpkgs-221ef67e1c12f3c374ec0737445e1a62fa6f6806.tar.gz
nixpkgs-221ef67e1c12f3c374ec0737445e1a62fa6f6806.tar.bz2
nixpkgs-221ef67e1c12f3c374ec0737445e1a62fa6f6806.tar.lz
nixpkgs-221ef67e1c12f3c374ec0737445e1a62fa6f6806.tar.xz
nixpkgs-221ef67e1c12f3c374ec0737445e1a62fa6f6806.tar.zst
nixpkgs-221ef67e1c12f3c374ec0737445e1a62fa6f6806.zip
kernel: add deterministic-uname to moduleBuildDependencies
-rw-r--r--pkgs/os-specific/linux/kernel/manual-config.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/kernel/manual-config.nix b/pkgs/os-specific/linux/kernel/manual-config.nix
index 310178b9a1f..18c32930f36 100644
--- a/pkgs/os-specific/linux/kernel/manual-config.nix
+++ b/pkgs/os-specific/linux/kernel/manual-config.nix
@@ -57,8 +57,12 @@ let
     hasAttr getAttr optional optionals optionalString optionalAttrs maintainers platforms;
 
   # Dependencies that are required to build kernel modules
-  moduleBuildDependencies = [ perl libelf ]
-    ++ optional (lib.versionAtLeast version "5.13") zstd;
+  moduleBuildDependencies = [
+    perl
+    libelf
+    # module makefiles often run uname commands to find out the kernel version
+    (buildPackages.deterministic-uname.override { inherit modDirVersion; })
+  ] ++ optional (lib.versionAtLeast version "5.13") zstd;
 
   drvAttrs = config_: kernelConf: kernelPatches: configfile:
     let