1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

config.configurePlatformsByDefault: init option

Useful to enable tree-wide occasionally to have incremental progress
towards https://github.com/NixOS/nixpkgs/pull/87909 resolution.
This commit is contained in:
Sergei Trofimovich 2022-06-21 08:14:34 +01:00
parent b76e4a37da
commit db09d70d33
2 changed files with 6 additions and 2 deletions

View file

@ -111,9 +111,9 @@ let
, # Target is not included by default because most programs don't care.
# Including it then would cause needless mass rebuilds.
#
# TODO(@Ericson2314): Make [ "build" "host" ] always the default.
# TODO(@Ericson2314): Make [ "build" "host" ] always the default / resolve #87909
configurePlatforms ? lib.optionals
(stdenv.hostPlatform != stdenv.buildPlatform)
(stdenv.hostPlatform != stdenv.buildPlatform || config.configurePlatformsByDefault)
[ "build" "host" ]
# TODO(@Ericson2314): Make unconditional / resolve #33599

View file

@ -50,6 +50,10 @@ let
feature = "set <literal>enableParallelBuilding</literal> to true by default";
};
configurePlatformsByDefault = mkMassRebuild {
feature = "set <literal>configurePlatforms</literal> to <literal>[\"build\" \"host\"]</literal> by default";
};
contentAddressedByDefault = mkMassRebuild {
feature = "set <literal>__contentAddressed</literal> to true by default";
};