mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
fetchYarnDeps: use fakeSha256 if no hash is given
This commit is contained in:
parent
1565ab9717
commit
842a0d94cb
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user