fetchNpmDeps: pass NIX_NPM_TOKENS as an impure env var
This commit is contained in:
parent
e271266179
commit
7f76ac6e09
1 changed files with 3 additions and 1 deletions
|
@ -165,7 +165,9 @@
|
||||||
|
|
||||||
dontInstall = true;
|
dontInstall = true;
|
||||||
|
|
||||||
impureEnvVars = lib.fetchers.proxyImpureEnvVars;
|
# NIX_NPM_TOKENS environment variable should be a JSON mapping in the shape of:
|
||||||
|
# `{ "registry.example.com": "example-registry-bearer-token", ... }`
|
||||||
|
impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [ "NIX_NPM_TOKENS" ];
|
||||||
|
|
||||||
SSL_CERT_FILE = if (hash_.outputHash == "" || hash_.outputHash == lib.fakeSha256 || hash_.outputHash == lib.fakeSha512 || hash_.outputHash == lib.fakeHash)
|
SSL_CERT_FILE = if (hash_.outputHash == "" || hash_.outputHash == lib.fakeSha256 || hash_.outputHash == lib.fakeSha512 || hash_.outputHash == lib.fakeHash)
|
||||||
then "${cacert}/etc/ssl/certs/ca-bundle.crt"
|
then "${cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||||
|
|
Loading…
Reference in a new issue