From 9de6d10d112665ba1c6d807dd3950ed4c43a4404 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 30 Jul 2012 16:39:31 -0400 Subject: [PATCH] Get rid of $NIX_BINARY_CACHES MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit You can use ‘--option binary-caches URLs’ instead. --- doc/manual/conf-file.xml | 6 ++++-- scripts/download-from-binary-cache.pl.in | 5 ++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/manual/conf-file.xml b/doc/manual/conf-file.xml index cccee8d46..c73466ef5 100644 --- a/doc/manual/conf-file.xml +++ b/doc/manual/conf-file.xml @@ -30,6 +30,9 @@ gc-keep-derivations = true # Idem env-keep-derivations = false +You can override settings using the +flag, e.g. --option gc-keep-outputs false. + The following settings are currently available: @@ -310,8 +313,7 @@ build-use-chroot = /dev /proc /bin binary-caches A list of URLs of binary caches, separated by - whitespace. It can be overriden through the environment variable - NIX_BINARY_CACHES. The default is + whitespace. The default is http://nixos.org/binary-cache. diff --git a/scripts/download-from-binary-cache.pl.in b/scripts/download-from-binary-cache.pl.in index 6482b9c18..7e203ec9d 100644 --- a/scripts/download-from-binary-cache.pl.in +++ b/scripts/download-from-binary-cache.pl.in @@ -166,9 +166,8 @@ sub getAvailableCaches { $gotCaches = 1; my @urls = map { s/\/+$//; $_ } split(/ /, - ($ENV{"NIX_BINARY_CACHES"} - // $Nix::Config::config{"binary-caches"} - // ($Nix::Config::storeDir eq "/nix/store" ? "http://nixos.org/binary-cache" : ""))); + $Nix::Config::config{"binary-caches"} + // ($Nix::Config::storeDir eq "/nix/store" ? "http://nixos.org/binary-cache" : "")); foreach my $url (@urls) {