diff --git a/pkgs/build-support/kernel/modules-closure.nix b/pkgs/build-support/kernel/modules-closure.nix index cad0c7a21f94..6ae844a62463 100644 --- a/pkgs/build-support/kernel/modules-closure.nix +++ b/pkgs/build-support/kernel/modules-closure.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation { name = kernel.name + "-shrunk"; builder = ./modules-closure.sh; - buildInputs = [nukeReferences]; - inherit kernel rootModules kmod allowMissing; + buildInputs = [ nukeReferences kmod ]; + inherit kernel rootModules allowMissing; allowedReferences = ["out"]; } diff --git a/pkgs/build-support/kernel/modules-closure.sh b/pkgs/build-support/kernel/modules-closure.sh index d0ac88f69247..71d507b1e2b1 100644 --- a/pkgs/build-support/kernel/modules-closure.sh +++ b/pkgs/build-support/kernel/modules-closure.sh @@ -2,8 +2,6 @@ source $stdenv/setup set -o pipefail -PATH=$kmod/sbin:$PATH - version=$(cd $kernel/lib/modules && ls -d *) echo "kernel version is $version"