1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

rename build-extra-platforms -> extra-platforms

also document it
This commit is contained in:
Linus Heckemann 2018-03-16 22:50:27 +00:00
parent 919c3c20b3
commit 637701b604
2 changed files with 25 additions and 2 deletions

View file

@ -295,8 +295,12 @@ public:
"Nix store has a valid signature (that is, one signed using a key "
"listed in 'trusted-public-keys'."};
Setting<StringSet> extraPlatforms{this, StringSet{}, "build-extra-platforms",
"Additional platforms that can be built on the local system, e.g. using qemu-user."};
Setting<StringSet> extraPlatforms{this,
SYSTEM == "x86_64-linux" ? StringSet{"i686-linux"} : StringSet{},
"extra-platforms",
"Additional platforms that can be built on the local system. "
"These may be supported natively (e.g. armv7 on some aarch64 CPUs "
"or using hacks like qemu-user."};
Setting<Strings> substituters{this,
nixStore == "/nix/store" ? Strings{"https://cache.nixos.org/"} : Strings(),