about summary refs log tree commit diff
path: root/scripts/nix-channel.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-08-09T23·16+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-08-09T23·16+0000
commitf881f7a017059fb501668aa85d41e873fe8f5285 (patch)
treea8af6e6b159db1e01fd09f170e6f16718c390c3e /scripts/nix-channel.in
parentef240bc0d564d8de8877724756c1e7765c74ff75 (diff)
* nix-prefetch-url: support caching. If the environment variable
  NIX_DOWNLOAD_CACHE is set, then nix-prefetch-url will store the hash
  and timestamp of downloaded files in the directory
  $NIX_DOWNLOAD_CACHE.  This allows it to figure out if the file is
  still in the Nix store.

Diffstat (limited to 'scripts/nix-channel.in')
-rw-r--r--scripts/nix-channel.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/nix-channel.in b/scripts/nix-channel.in
index 41a75adf14a2..fd6639ec1b31 100644
--- a/scripts/nix-channel.in
+++ b/scripts/nix-channel.in
@@ -98,7 +98,8 @@ sub update {
         my $fullURL = "$url/nixexprs.tar.bz2";
         print "downloading Nix expressions from `$fullURL'...\n";
         $ENV{"PRINT_PATH"} = 1;
-        my ($hash, $path) = `@bindir@/nix-prefetch-url '$fullURL' 2> /dev/null`;
+        $ENV{"QUIET"} = 1;
+        my ($hash, $path) = `@bindir@/nix-prefetch-url '$fullURL'`;
         die "cannot fetch `$fullURL'" if $? != 0;
         chomp $path;
         $inputs .= '"' . $channelName . '"' . " " . $path . " ";