From 0f80aa96a6a5c665753d99baf2f812cbd2c77f20 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Fri, 28 Oct 2011 23:44:49 +0000 Subject: [PATCH] s|/nix/store|$NIX_STORE| svn path=/nixpkgs/trunk/; revision=30094 --- pkgs/build-support/kernel/modules-closure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/kernel/modules-closure.sh b/pkgs/build-support/kernel/modules-closure.sh index c1e216956e77..7faaa0122cd2 100644 --- a/pkgs/build-support/kernel/modules-closure.sh +++ b/pkgs/build-support/kernel/modules-closure.sh @@ -27,7 +27,7 @@ done echo "closure:" ensureDir $out/lib/modules/"$version" for module in $closure; do - target=$(echo $module | sed "s^/nix/store/.*/lib/modules/^$out/lib/modules/^") + target=$(echo $module | sed "s^$NIX_STORE.*/lib/modules/^$out/lib/modules/^") if test -e "$target"; then continue; fi mkdir -p $(dirname $target) echo $module