fetchurl: Always use tarballs.nixos.org
Otherwise, if the upstream mirror changes (rather than deletes) a
file, then tarballs.nixos.org won't be used even if it has a copy of
the original file, and so we'll get a hash mismatch.
commitbb672805cddbd3b5b145a1b5188444ba9af6cde5
authorEelco Dolstra <eelco.dolstra@logicblox.com>
dateThu 10 Dec 2015, 15:18 (11 years ago)
parent6bd0519
pkgs/build-support/fetchurl/builder.sh−4
@@ -89,10 +89,6 @@ for url in $urls; do
8989 if test -z "${!varName}"; then
9090 echo "warning: unknown mirror:// site \`$site'"
9191 else
92− # Assume that SourceForge/GNU/kernel mirrors have better
93− # bandwidth than nixos.org.
94− preferHashedMirrors=
95−
9692 mirrors=${!varName}
9793
9894 # Allow command-line override by setting NIX_MIRRORS_$site.