Add option to disable import-from-derivation completely, even if the drv is already realized
This commit is contained in:
parent
121a407eec
commit
93f863be96
3 changed files with 7 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ Settings::Settings()
|
|||
enableImportNative = false;
|
||||
netrcFile = fmt("%s/%s", nixConfDir, "netrc");
|
||||
caFile = getEnv("NIX_SSL_CERT_FILE", getEnv("SSL_CERT_FILE", "/etc/ssl/certs/ca-certificates.crt"));
|
||||
enableImportFromDerivation = true;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -185,6 +186,7 @@ void Settings::update()
|
|||
_get(keepGoing, "keep-going");
|
||||
_get(keepFailed, "keep-failed");
|
||||
_get(netrcFile, "netrc-file");
|
||||
_get(enableImportFromDerivation, "allow-import-from-derivation");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -198,6 +198,9 @@ struct Settings {
|
|||
/* Path to the SSL CA file used */
|
||||
Path caFile;
|
||||
|
||||
/* Whether we allow import-from-derivation */
|
||||
bool enableImportFromDerivation;
|
||||
|
||||
private:
|
||||
SettingsMap settings, overrides;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue