From 11a84210f1c88a201e7ee73c4ae3e464ff84c725 Mon Sep 17 00:00:00 2001 From: Philipp Mandler Date: Sat, 16 Dec 2023 01:44:24 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Configure=20npm=20to=20use=20tem?= =?UTF-8?q?p=20dir=20in=20frontend=20nix=20derivation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nix/pkgs/frontend.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/pkgs/frontend.nix b/nix/pkgs/frontend.nix index 204e2bb7..87b4e879 100644 --- a/nix/pkgs/frontend.nix +++ b/nix/pkgs/frontend.nix @@ -19,7 +19,6 @@ stdenv.mkDerivation { cd frontend/ ''; - installPhase = let versionExports = ([ ] @@ -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}