nixpkgs/pkgs/misc/nix-unstable/nix-0.10pre5896-paths.patch
Armijn Hemel 604ca29bf0 add patches:
* nix-0.10pre5896-paths.patch :: this path adds coreutils to the searchpath,
so nix-prefetch-url can find "basename"
* nix-0.10pre5896-chroot-once.patch :: unsets NIX_ROOT in various scripts,
to prevent that when NIX_ROOT is set and one of the nix tools is called that
chroot() is performed once more

svn path=/nixpkgs/trunk/; revision=6023
2006-08-02 20:44:17 +00:00

15 lines
452 B
Diff

diff -rc nix-0.10pre5896/scripts/nix-prefetch-url.in nix-0.10pre5896.new/scripts/nix-prefetch-url.in
*** nix-0.10pre5896/scripts/nix-prefetch-url.in 2006-07-24 20:39:47.000000000 +0200
--- nix-0.10pre5896.new/scripts/nix-prefetch-url.in 2006-08-02 20:01:15.000000000 +0200
***************
*** 3,8 ****
--- 3,10 ----
url=$1
expHash=$2
+ export PATH=$PATH:@coreutils@
+
hashType=$NIX_HASH_ALGO
if test -z "$hashType"; then
hashType=md5