fetchYarnDeps: use fakeSha256 if no hash is given

This commit is contained in:
Yureka 2021-10-28 19:29:58 +02:00 committed by Raphael Megzari
parent 1565ab9717
commit 842a0d94cb

View File

@ -49,7 +49,7 @@ in {
hash_ =
if hash != "" then { outputHashAlgo = null; outputHash = hash; }
else if sha256 != "" then { outputHashAlgo = "sha256"; outputHash = sha256; }
else throw "fetchYarnDeps requires a hash";
else { outputHashAlgo = "sha256"; outputHash = lib.fakeSha256; };
in stdenv.mkDerivation {
inherit name;