Skip to content

Commit 40d5f4e

Browse files
committed
fetchurl: don't prefer hashed mirrors by default
Right now, when building any FOD that uses `fetchurl` (which is the majority of ours), `tarballs.nixos.org` will always be contacted before the actual URL. Given that `tarballs.nixos.org` mainly hosts the bootstrap tools, which already explicitly set it as the host to pull from, it doesn't make much sense to force every other `fetchurl` invocation to first reach out to `tarballs.nixos.org`.
1 parent 221cd6d commit 40d5f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/build-support/fetchurl/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ stdenvNoCC.mkDerivation (
222222

223223
# If set, prefer the content-addressable mirrors
224224
# (http://tarballs.nixos.org) over the original URLs.
225-
preferHashedMirrors = true;
225+
preferHashedMirrors = false;
226226

227227
# New-style output content requirements.
228228
inherit (hash_) outputHashAlgo outputHash;

0 commit comments

Comments
 (0)