diff --git a/pkgs/misc/nix/default.nix b/pkgs/misc/nix/default.nix index f79efd4970b4..a77e1c538737 100644 --- a/pkgs/misc/nix/default.nix +++ b/pkgs/misc/nix/default.nix @@ -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; } diff --git a/pkgs/misc/nix/nix-profile-0.9.2.patch b/pkgs/misc/nix/nix-profile-0.9.2.patch new file mode 100644 index 000000000000..9acc802a2a82 --- /dev/null +++ b/pkgs/misc/nix/nix-profile-0.9.2.patch @@ -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