Commit d85db2c1 authored by linsui's avatar linsui
Browse files

pnpm.fetchDeps: support registry mirror

parent 9d42cf20
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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