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 committed Dec 16, 2023
1 parent 88976d4 commit fb6cf2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nix/pkgs/frontend.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ stdenv.mkDerivation {
'';

installPhase = ''
# npm is used by some packages
export NPM_CONFIG_CACHE="$(mktemp -d)"
pnpm install --frozen-lockfile
pnpm build
Expand Down

0 comments on commit fb6cf2e

Please sign in to comment.