fetchurl: reference lib.fakeHash for empty hash algorithm

This commit is contained in:
Yueh-Shun Li
2025-11-22 06:06:49 +08:00
parent c68642058c
commit cf99863262
+2 -2
View File
@@ -214,8 +214,8 @@ lib.extendMkDerivation {
}
else if cacert != null then
{
outputHashAlgo = "sha256";
outputHash = "";
outputHashAlgo = null;
outputHash = lib.fakeHash;
}
else
throw "fetchurl requires a hash for fixed-output derivation: ${lib.generators.toPretty { } urls_}";