-
-
Notifications
You must be signed in to change notification settings - Fork 13.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
meson: cross-compilation breaks when not using callPackage #67880
Comments
This looks like a duplicate of #49526 |
Hm, interesting. It might be possible to fix this in isolation, though. |
I am also experiencing this issue. |
This is expected. See splice.nix (no link cause on phone sorry). It is evil but I know no alternative other than a big refactor. Without splicing you need to explicitly use |
Hello, I'm a bot and I thank you in the name of the community for opening this issue. To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human. The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them. Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel. |
I think this is fixed; stuff still breaks without callPackage because evil splicing, but there's nothing Meson specific about it. |
Describe the bug
Cross-compilation will break for derivations that depend on Meson unless wrapped in
callPackage
. Derivations that usecallPackage
work fine.To Reproduce
Create
default.nix
:Run
nix-build
. It will fail with:Which points to:
nixpkgs/pkgs/development/tools/build-managers/meson/default.nix
Line 82 in 8de795e
Expected behavior
If you modify
default.nix
to wrap derivation incallPackage
, like this, you can successfully cross-compile a package that depends on Meson:Additional context
Seems that
targetPackages.stdenv.targetPlatform
is missing forpkgsCross.*
unless usingcallPackage
. I wonder if it's always true thatstdenv.targetPlatform == targetPackages.stdenv.targetPlatform
.Metadata
Reproducible in the latest
nixos-unstable
:Maintainer information:
cc @jtojnar @Ericson2314
The text was updated successfully, but these errors were encountered: