diff options
author | Yureka <yuka@yuka.dev> | 2021-10-28 19:29:58 +0200 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-10-29 02:43:42 +0900 |
commit | 842a0d94cbb0a385854e15d4f6fde57714981abd (patch) | |
tree | 02fc0ae9cc16340580c097a4c7d3720add7120bd /pkgs | |
parent | 1565ab9717d8be76765c1995720ecb160b1541e3 (diff) |
fetchYarnDeps: use fakeSha256 if no hash is given
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/build-support/node/fetch-yarn-deps/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/node/fetch-yarn-deps/default.nix b/pkgs/build-support/node/fetch-yarn-deps/default.nix index 91aae055f6ada..6d67b87915ac2 100644 --- a/pkgs/build-support/node/fetch-yarn-deps/default.nix +++ b/pkgs/build-support/node/fetch-yarn-deps/default.nix @@ -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; |