config.strictDepsByDefault: init option

so i won't have to change make-derivation.nix when i wan't to make this
true
This commit is contained in:
Artturin 2022-04-27 17:53:08 +03:00
parent 0e518ad8d9
commit d76021402d
2 changed files with 5 additions and 1 deletions

View file

@ -69,7 +69,7 @@ in
, doInstallCheck ? config.doCheckByDefault or false
, # TODO(@Ericson2314): Make always true and remove
strictDeps ? stdenv.hostPlatform != stdenv.buildPlatform
strictDeps ? if config.strictDepsByDefault then true else stdenv.hostPlatform != stdenv.buildPlatform
, meta ? {}
, passthru ? {}
, pos ? # position used in error messages and for meta.position

View file

@ -32,6 +32,10 @@ let
feature = "run <literal>checkPhase</literal> by default";
};
strictDepsByDefault = mkMassRebuild {
feature = "set <literal>strictDeps</literal> to true by default";
};
allowAliases = mkOption {
type = types.bool;
default = true;