-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
musl: tighten platforms #228712
musl: tighten platforms #228712
Conversation
This will make it possible to check whether we can use pkgsStatic opportunistically, in places like busybox-sandbox-shell, which currently decides not to use pkgsStatic based on a hard-coded set of platforms.
musl now supports RISC-V. Let's centralise musl availability checks in musl.meta.platforms, so we don't have to keep cleaning up ad-hoc checks like this all over the tree.
And I think |
In theory, but the check we'd want to use ( (We don't want to just check for musl there, because pkgsStatic only means musl on Linux.) |
freshBootstrapTools successfully built on riscv64-linux by 0x4a6f (#exotic:nixos.org) |
The change looks reasonable to me, but can we somehow subtract the bad platforms instead of listing the good ones? |
We can, but I don't think we should. |
Description of changes
This will make it possible to check whether we can use pkgsStatic opportunistically, in places like busybox-sandbox-shell, which currently decides not to use pkgsStatic based on a hard-coded set of platforms.
I haven't actually changed busybox-sandbox-shell to use it yet, because that would just cause conflicts with #227560, so we can do it later.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)