From d3370dfb363879b647e575ec5597e13e301ca75a Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Wed, 2 Aug 2006 16:56:34 +0000 Subject: [PATCH] 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 --- pkgs/misc/nix-unstable/default.nix | 1 + .../nix-unstable/nix-0.10pre5896-date.patch | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/misc/nix-unstable/nix-0.10pre5896-date.patch diff --git a/pkgs/misc/nix-unstable/default.nix b/pkgs/misc/nix-unstable/default.nix index ffc72adc99b..d678d925d43 100644 --- a/pkgs/misc/nix-unstable/default.nix +++ b/pkgs/misc/nix-unstable/default.nix @@ -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]; } diff --git a/pkgs/misc/nix-unstable/nix-0.10pre5896-date.patch b/pkgs/misc/nix-unstable/nix-0.10pre5896-date.patch new file mode 100644 index 00000000000..7b8012ae285 --- /dev/null +++ b/pkgs/misc/nix-unstable/nix-0.10pre5896-date.patch @@ -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"; +