workaround for problem with "date" not being in the path when using manifests on NixOS...better solution would be to switch to the Perl equivalent of "date"

svn path=/nixpkgs/trunk/; revision=6020
This commit is contained in:
Armijn Hemel 2006-08-02 16:56:34 +00:00
parent 6fa02079b8
commit d3370dfb36
2 changed files with 21 additions and 0 deletions

View File

@ -20,4 +20,5 @@ stdenv.mkDerivation {
# uncomment if you want to be able to use nix-prefetch-url when NIX_ROOT
# is set
#patches = [./nix-0.10pre5679.patch];
patches = [./nix-0.10pre5896-date.patch];
}

View File

@ -0,0 +1,20 @@
diff -rc nix-0.10pre5896/scripts/download-using-manifests.pl.in nix-0.10pre5896.new/scripts/download-using-manifests.pl.in
*** nix-0.10pre5896/scripts/download-using-manifests.pl.in 2006-07-24 20:39:47.000000000 +0200
--- nix-0.10pre5896.new/scripts/download-using-manifests.pl.in 2006-08-02 18:06:53.000000000 +0200
***************
*** 27,33 ****
die unless scalar @ARGV == 1;
my $targetPath = $ARGV[0];
! my $date = `date` or die;
chomp $date;
print LOGFILE "$$ get $targetPath $date\n";
--- 27,33 ----
die unless scalar @ARGV == 1;
my $targetPath = $ARGV[0];
! my $date = `@coreutils@/date` or die;
chomp $date;
print LOGFILE "$$ get $targetPath $date\n";