fetchurl: also check certificate when using all zero hash (#152608)
This commit is contained in:
parent
00a5cfc306
commit
5f58402c94
@ -139,7 +139,7 @@ stdenvNoCC.mkDerivation {
|
|||||||
# New-style output content requirements.
|
# New-style output content requirements.
|
||||||
inherit (hash_) outputHashAlgo outputHash;
|
inherit (hash_) outputHashAlgo outputHash;
|
||||||
|
|
||||||
SSL_CERT_FILE = if hash_.outputHash == ""
|
SSL_CERT_FILE = if (hash_.outputHash == "" || hash_.outputHash == lib.fakeSha256 || hash_.outputHash == lib.fakeSha512 || hash_.outputHash == lib.fakeHash)
|
||||||
then "${cacert}/etc/ssl/certs/ca-bundle.crt"
|
then "${cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||||
else "/no-cert-file.crt";
|
else "/no-cert-file.crt";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user