diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-08-22 15:53:21 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-08-22 15:53:21 +0000 |
commit | eebb241519615e0e82704ab80aacdd4f510f2555 (patch) | |
tree | 4e6773de706732c0379d6a260b2d6d0bdb5cff05 /pkgs/build-support/fetchurl/builder.sh | |
parent | 4457e49a90647bcf91f50e3d0758e1b623b10c27 (diff) | |
download | nixlib-eebb241519615e0e82704ab80aacdd4f510f2555.tar nixlib-eebb241519615e0e82704ab80aacdd4f510f2555.tar.gz nixlib-eebb241519615e0e82704ab80aacdd4f510f2555.tar.bz2 nixlib-eebb241519615e0e82704ab80aacdd4f510f2555.tar.lz nixlib-eebb241519615e0e82704ab80aacdd4f510f2555.tar.xz nixlib-eebb241519615e0e82704ab80aacdd4f510f2555.tar.zst nixlib-eebb241519615e0e82704ab80aacdd4f510f2555.zip |
* Write the list of mirrors to a file that we can reuse between
fetchurl instantiations, instead of passing the mirrors to fetchurl instantiations via environment variables. This makes the resulting store derivations (.drv files) much smaller, which in turn makes nix-env/nix-instantiate faster (4.8 -> 4.2 seconds on nix-env -qa --out-path). svn path=/nixpkgs/trunk/; revision=12695
Diffstat (limited to 'pkgs/build-support/fetchurl/builder.sh')
-rw-r--r-- | pkgs/build-support/fetchurl/builder.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchurl/builder.sh b/pkgs/build-support/fetchurl/builder.sh index bfa57143b4b7..2276bfc1de3d 100644 --- a/pkgs/build-support/fetchurl/builder.sh +++ b/pkgs/build-support/fetchurl/builder.sh @@ -1,5 +1,7 @@ source $stdenv/setup +source $mirrorsFile + if test -n "$showURLs"; then header "downloading file $name with $outputHashAlgo hash $outputHash..." fi |