From d85db2c1f1f0c0deed63b76f06504780441397b2 Mon Sep 17 00:00:00 2001 From: linsui <36977733+linsui@users.noreply.github.com> Date: Mon, 28 Oct 2024 21:59:03 +0800 Subject: [PATCH] pnpm.fetchDeps: support registry mirror --- pkgs/development/tools/pnpm/fetch-deps/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/pnpm/fetch-deps/default.nix b/pkgs/development/tools/pnpm/fetch-deps/default.nix index ae2c1e1193cb..971f1656ba92 100644 --- a/pkgs/development/tools/pnpm/fetch-deps/default.nix +++ b/pkgs/development/tools/pnpm/fetch-deps/default.nix @@ -56,7 +56,7 @@ yq ]; - impureEnvVars = lib.fetchers.proxyImpureEnvVars; + impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [ "NIX_NPM_REGISTRY" ]; installPhase = '' runHook preInstall @@ -82,6 +82,7 @@ --ignore-scripts \ ${lib.escapeShellArgs filterFlags} \ ${lib.escapeShellArgs pnpmInstallFlags} \ + --registry="$NIX_NPM_REGISTRY" \ --frozen-lockfile runHook postInstall