-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
splice.nix: Handle maybe throw sets #360602
base: master
Are you sure you want to change the base?
Conversation
0278d4d
to
e895f90
Compare
The [mash](https://www.github.com/NixOS/nixpkgs/blob/86fcbea3f26cf17e4d6560ec722f3ca893053a89/pkgs/top-level/splice.nix#L32) will trigger the throw in `pkgsBuildX` in the [recursive `spliceReal`](https://www.github.com/NixOS/nixpkgs/blob/a4b5e0bb8f309fb1623d8e619c1610df75761c12/pkgs/top-level/splice.nix#L82) of `pkgsi686Linux`. ``` $ nix repl --file . --system aarch64-linux nix-repl> :p pkgsCross.gnu64.__splicedPackages.pkgsi686Linux.bash.__spliced { hostHost = «derivation /nix/store/0w1mahsn6biqmasm5vg85a9lh5rvyr9j-bash-i686-unknown-linux-gnu-5.2p37.drv»; hostTarget = «repeated»; } ``` Fixes ```sh $ nix eval --impure --expr '(import ./. { localSystem.system = "aarch64-linux"; crossSystem.system = "x86_64-linux"; config.allowUnfree = true; }).steam' «error: i686 Linux package set can only be used with the x86 family.» ``` Alternatively `pkgs/build-support/build-fhsenv-bubblewrap/buildFHSEnv.nix` could change all `pkgsi686Linux` to `pkgsHostTarget.pkgsi686Linux`.
e895f90
to
2c81e53
Compare
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.
Maybe extract the use of lib
to the topmost place that it could occur?
lib:
let
inherit (lib) ...;
in
pkgs: actuallySplice:
That's already in #341067 put it's unknown if it improves performance |
LGTM https://github.com/NixOS/nixpkgs/pull/360602/checks?check_run_id=33753296675 |
I want to get #341067 evalling first and then apply #341067 and |
The mash will trigger the throw in
pkgsBuildX
in the recursivespliceReal
ofpkgsi686Linux
.Fixes
Alternatively
pkgs/build-support/build-fhsenv-bubblewrap/buildFHSEnv.nix
could change allpkgsi686Linux
topkgsHostTarget.pkgsi686Linux
.Concerned about performance
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.