-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
treewide: platforms.gnu -> gnu ++ linux, allow using musl #39773
Conversation
"platforms.gnu" has been linux-only since at least 17.03: $ nix eval -f channel:nixos-17.03 lib.platforms.gnu [ "i686-linux" "x86_64-linux" "armv5tel-linux" "armv6l-linux" "armv7l-linux" "aarch64-linux" "mips64el-linux" ] Unlike platforms.linux, platforms.gnu indicates "must use glibc" which for the most part is not intended. Replacing platforms.gnu with platforms.linux would be the same "today" but let's err on preserving existing behavior and be optimistic about platforms these packages work on.
Include all linux platforms.
Success on x86_64-darwin (full log) Attempted: mtools Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: mtools Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: mtools Partial log (click to expand)
|
@@ -48,6 +48,6 @@ stdenv.mkDerivation rec { | |||
license = stdenv.lib.licenses.gpl3Plus; | |||
|
|||
maintainers = [ ]; | |||
platforms = stdenv.lib.platforms.gnu; | |||
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one should be stdenv.lib.platforms.unix (it works on Darwin)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing! Okay, I'll address this shortly. Hooray for working on more platforms! 👍
Many packages have use
platforms.gnu
as an "arbitrary choice",others perhaps because at some point this indicated more
than building w/Linux.
Whatever the reason, for most (nearly all) packages
platforms.gnu
is overly pessimistic and in particulareffectively means "all Linux triples that don't use musl".
This PR extends these to include all linux platforms,
while keeping
platforms.gnu
in case we ever supportnon-Linux gnu platforms again.
No rebuilds should be required.
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)