Make it easy to build everything as content-addressed
Add a config field `contentAddressedByDefault` and an associated environment variable `NIXPKGS_CA_BY_DEFAULT` to make every nixpkgs derivation content-addressed by default
This commit is contained in:
parent
2f45625673
commit
cc5b30c6ac
1 changed files with 4 additions and 1 deletions
|
@ -89,7 +89,10 @@ in rec {
|
|||
|
||||
, patches ? []
|
||||
|
||||
, __contentAddressed ? false
|
||||
, __contentAddressed ?
|
||||
(! attrs ? outputHash) # Fixed-output drvs can't be content addressed too
|
||||
&& (config.contentAddressedByDefault or false
|
||||
|| builtins.getEnv "NIXPKGS_CA_BY_DEFAULT" == "1")
|
||||
|
||||
, ... } @ attrs:
|
||||
|
||||
|
|
Loading…
Reference in a new issue