Skip to content

nixVersions.nix_2_26: cross compilation is broken #392783

@Mic92

Description

@Mic92

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: cross-compilationBuilding packages on a different platform than they will be used on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions