-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Labels
0.kind: bugSomething is brokenSomething is broken6.topic: cross-compilationBuilding packages on a different platform than they will be used onBuilding packages on a different platform than they will be used on
Description
Nixpkgs version
- Unstable (25.05)
Describe the bug
There is an evaluation error when cross compiling packages:
#388965 (comment)
Steps to reproduce
nix-build -A pkgsCross.aarch64-multiplatform.nixVersions.latest
error:
… while evaluating the attribute 'nix_2_26'
at /Users/joerg/git/nixpkgs/pkgs/tools/package-management/nix/default.nix:190:3:
189|
190| nix_2_26 = addTests "nix_2_26" (callPackage ./vendor/2_26/componentized.nix { inherit (self.nix_2_24.meta) maintainers; });
| ^
191|
… in the left operand of the update (//) operator
at /Users/joerg/git/nixpkgs/pkgs/tools/package-management/nix/default.nix:156:9:
155| # preserve old pkg, including overrideSource, etc
156| pkg // {
| ^
157| tests = pkg.tests or {} // tests;
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: attribute should be found
Expected behaviour
nix can be cross compiled.
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.12.10, NixOS, 25.05 (Warbler), 25.05.20250317.27c813a - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.27.0pre20250312_450deca - nixpkgs:
/nix/store/vms778ynqvswjrl8dk8x9q4iwbdih209-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken6.topic: cross-compilationBuilding packages on a different platform than they will be used onBuilding packages on a different platform than they will be used on