add a patch to correctly use coreutils to create a profile. This is needed for NixOS, where we might not know our PATH in advance.

svn path=/nixpkgs/trunk/; revision=4066
This commit is contained in:
Armijn Hemel 2005-10-11 17:29:37 +00:00
parent 552de99c19
commit 696f46f737
2 changed files with 13 additions and 0 deletions

View File

@ -15,5 +15,6 @@ stdenv.mkDerivation {
md5 = "fc3a24f72760e357ac29935b2aebce0b";
};
buildInputs = [aterm bdb perl curl];
patches = [./nix-profile-0.9.2.patch];
inherit storeDir stateDir aterm bdb;
}

View File

@ -0,0 +1,12 @@
diff -ruN nix-0.9.2/scripts/nix-profile.sh.in nix-0.9.2.new/scripts/nix-profile.sh.in
--- nix-0.9.2/scripts/nix-profile.sh.in 2005-09-21 20:29:43.000000000 +0200
+++ nix-0.9.2.new/scripts/nix-profile.sh.in 2005-10-11 18:44:57.000000000 +0200
@@ -4,7 +4,7 @@
if ! test -L "$NIX_LINK"; then
echo "creating $NIX_LINK"
_NIX_DEF_LINK=@localstatedir@/nix/profiles/default
- ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
+ @coreutils@/ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
fi
export PATH=$NIX_LINK/bin:@prefix@/bin:$PATH