pnpm.fetchDeps: support registry mirror

This commit is contained in:
linsui
2024-10-28 21:59:03 +08:00
parent 9d42cf2012
commit d85db2c1f1
@@ -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