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-compiled nix fails to evaluate #381952

Open
3 tasks done
jmbaur opened this issue Feb 14, 2025 · 0 comments
Open
3 tasks done

nixVersions.nix_2_26: cross-compiled nix fails to evaluate #381952

jmbaur opened this issue Feb 14, 2025 · 0 comments
Labels
0.kind: bug Something is broken 6.topic: cross-compilation Building packages on a different platform than they will be used on

Comments

@jmbaur
Copy link
Contributor

jmbaur commented Feb 14, 2025

Nixpkgs version

  • Unstable (25.05)

Describe the bug

Cross-compiled nix fails to evaluate

Steps to reproduce

sh-5.2$ nix eval github:nixos/nixpkgs/451b0d33a79cfa63b5c4ca76b5dfe6d9d546d7a6#nixVersions.nix_2_26
«derivation /nix/store/138iqr1slvczk3y790ppxvizw8412yfq-nix-2.26.1.drv»
sh-5.2$ nix eval github:nixos/nixpkgs/451b0d33a79cfa63b5c4ca76b5dfe6d9d546d7a6#pkgsCross.aarch64-multiplatform.nixVersions.nix_2_26
error:
       … while calling a functor (an attribute set with a '__functor' attribute)
         at /nix/store/5ci04l7ljffh6pimh2pxwqz83q8845gh-source/lib/customisation.nix:306:7:
          305|     if missingArgs == { } then
          306|       makeOverridable f allArgs
             |       ^
          307|     # This needs to be an abort so it can't be caught with `builtins.tryEval`,

       … while evaluating a branch condition
         at /nix/store/5ci04l7ljffh6pimh2pxwqz83q8845gh-source/lib/customisation.nix:173:7:
          172|       in
          173|       if isAttrs result then
             |       ^
          174|         result

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute should be found

Expected behaviour

Eval succeeds

System metadata

sh-5.2$ nix-shell -p nix-info --run "nix-info -m"
unpacking 'https://github.com/nixos/nixpkgs/archive/nixos-unstable.tar.gz' into the Git cache...
 - system: `"x86_64-linux"`
 - host os: `Linux 6.12.12, NixOS, 25.05 (Warbler), 25.05.20250214.2699d76`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.25.5`
 - nixpkgs: `/nix/store/brjzz8wv5k09bq0yrvhc1j4hd8677k21-source`

Notify maintainers

@roberth

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.

@jmbaur jmbaur added the 0.kind: bug Something is broken label Feb 14, 2025
@FliegendeWurst FliegendeWurst added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Feb 15, 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
Development

No branches or pull requests

2 participants