3
0
Fork 0
forked from mirrors/nixpkgs

fetchNpmDeps: pass NIX_NPM_TOKENS as an impure env var

This commit is contained in:
Lily Foster 2023-09-11 16:50:17 -04:00
parent e271266179
commit 7f76ac6e09
No known key found for this signature in database
GPG key ID: 49340081E484C893

View file

@ -165,7 +165,9 @@
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)
then "${cacert}/etc/ssl/certs/ca-bundle.crt"