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:
parent
6fa02079b8
commit
d3370dfb36
@ -20,4 +20,5 @@ stdenv.mkDerivation {
|
|||||||
# uncomment if you want to be able to use nix-prefetch-url when NIX_ROOT
|
# uncomment if you want to be able to use nix-prefetch-url when NIX_ROOT
|
||||||
# is set
|
# is set
|
||||||
#patches = [./nix-0.10pre5679.patch];
|
#patches = [./nix-0.10pre5679.patch];
|
||||||
|
patches = [./nix-0.10pre5896-date.patch];
|
||||||
}
|
}
|
||||||
|
20
pkgs/misc/nix-unstable/nix-0.10pre5896-date.patch
Normal file
20
pkgs/misc/nix-unstable/nix-0.10pre5896-date.patch
Normal 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";
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user