config.strictDepsByDefault: init option

so i won't have to change make-derivation.nix when i wan't to make this
true
main
Artturin 2 years ago
parent 0e518ad8d9
commit d76021402d
  1. 2
      pkgs/stdenv/generic/make-derivation.nix
  2. 4
      pkgs/top-level/config.nix

@ -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

@ -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;

Loading…
Cancel
Save