diff options
author | Yuka <yuka@yuka.dev> | 2021-10-23 19:13:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-23 19:13:34 +0200 |
commit | 49a5b293b940446e00837c424753f17314571395 (patch) | |
tree | c5e82e36f063a8fdb609335390b3e3cc8bf65b20 /pkgs/build-support | |
parent | a2bbc256f0b940b54764aaf0d32d40ddda2219a7 (diff) |
prefetch-yarn-deps: add nix dependency (#142664)
fixes "Error: spawn nix-hash ENOENT"
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/node/fetch-yarn-deps/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/build-support/node/fetch-yarn-deps/default.nix b/pkgs/build-support/node/fetch-yarn-deps/default.nix index 03be881311fbe..91aae055f6ada 100644 --- a/pkgs/build-support/node/fetch-yarn-deps/default.nix +++ b/pkgs/build-support/node/fetch-yarn-deps/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, makeWrapper, coreutils, nix-prefetch-git, fetchurl, nodejs-slim, prefetch-yarn-deps, cacert, callPackage }: +{ stdenv, lib, makeWrapper, coreutils, nix-prefetch-git, fetchurl, nodejs-slim, prefetch-yarn-deps, cacert, callPackage, nix }: let yarnpkg-lockfile-tar = fetchurl { @@ -13,7 +13,7 @@ in { dontUnpack = true; nativeBuildInputs = [ makeWrapper ]; - buildInputs = [ coreutils nix-prefetch-git nodejs-slim ]; + buildInputs = [ coreutils nix-prefetch-git nodejs-slim nix ]; buildPhase = '' runHook preBuild @@ -33,7 +33,7 @@ in { mkdir -p $out/bin cp -r libexec $out makeWrapper $out/libexec/index.js $out/bin/prefetch-yarn-deps \ - --prefix PATH : ${lib.makeBinPath [ coreutils nix-prefetch-git ]} + --prefix PATH : ${lib.makeBinPath [ coreutils nix-prefetch-git nix ]} runHook postInstall ''; |