Skip to content
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

nixVersions.nix_2_26: cross compilation is broken #392783

Closed
3 tasks done
Mic92 opened this issue Mar 24, 2025 · 0 comments · Fixed by #392832 or #393530
Closed
3 tasks done

nixVersions.nix_2_26: cross compilation is broken #392783

Mic92 opened this issue Mar 24, 2025 · 0 comments · Fixed by #392832 or #393530
Labels
0.kind: bug Something is broken 6.topic: cross-compilation Building packages on a different platform than they will be used on

Comments

@Mic92
Copy link
Member

Mic92 commented Mar 24, 2025

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

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@Mic92 Mic92 added the 0.kind: bug Something is broken label Mar 24, 2025
@FliegendeWurst FliegendeWurst added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Mar 24, 2025
@Ericson2314 Ericson2314 reopened this Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: cross-compilation Building packages on a different platform than they will be used on
Projects
None yet
3 participants