Skip to content

Commit

Permalink
🐛 Configure npm to use temp dir in frontend nix derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
phlmn authored and pajowu committed Dec 17, 2023
1 parent 651f145 commit 1ce1f9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nix/pkgs/frontend.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ stdenv.mkDerivation {
cd frontend/
'';


installPhase =
let
versionExports = ([ ]
Expand All @@ -29,6 +28,9 @@ stdenv.mkDerivation {
);
in
''
# npm is used by some packages
export NPM_CONFIG_CACHE="$(mktemp -d)"
pnpm install --frozen-lockfile
${lib.concatStringsSep "\n" versionExports}
Expand Down

0 comments on commit 1ce1f9f

Please sign in to comment.