From 842a0d94cbb0a385854e15d4f6fde57714981abd Mon Sep 17 00:00:00 2001 From: Yureka Date: Thu, 28 Oct 2021 19:29:58 +0200 Subject: fetchYarnDeps: use fakeSha256 if no hash is given --- pkgs/build-support/node/fetch-yarn-deps/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs') 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; -- cgit 1.4.1