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

makeWrapper doesn't cross compile #133113

Closed
marius851000 opened this issue Aug 8, 2021 · 1 comment
Closed

makeWrapper doesn't cross compile #133113

marius851000 opened this issue Aug 8, 2021 · 1 comment
Labels
0.kind: bug Something is broken

Comments

@marius851000
Copy link
Contributor

marius851000 commented Aug 8, 2021

Describe the bug

So, I tried to see if I could cross compile a package I made (not yet merged). I found the strange error

error: attribute 'runtimeShell' missing

       at /nix/store/2mkfc16s5pw8xbzrgbvnm9643mph50c3-nixos-21.11pre304909.d0044b0e7d5/nixos/pkgs/top-level/all-packages.nix:621:79:

          620|
          621|   makeWrapper = makeSetupHook { deps = [ dieHook ]; substitutions = { shell = targetPackages.runtimeShell; }; }
             |                                                                               ^
          622|                               ../build-support/setup-hooks/make-wrapper.sh;
(use '--show-trace' to show detailed location information)

This seems to affect every package that use makeWrapper

Steps To Reproduce

Steps to reproduce the behavior:

  1. run nix-build "<nixpkgs>" --arg crossSystem "{ config = \"x86_64-pc-linux-gnu\"; }" -A asciidoctor
  2. an parsing error should happen

Expected behavior

The build succeed or fail due to a package not being compatible with cross-compilation

Additional information

It seemed to work in the past : #120726

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.12.17, NixOS, 21.11.20210720.578dd8d (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210601_5985b8b`
 - channels(root): `"nixos-21.11pre304909.d0044b0e7d5"`
 - channels(marius): `"home-manager, mariusnur, mlpnur, nur, ricenur"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: makeWrapper
# a list of nixos modules affected by the problem
module:
@marius851000 marius851000 added the 0.kind: bug Something is broken label Aug 8, 2021
@marius851000
Copy link
Contributor Author

This is actually a duplicate of #116504

In particular, it says :

"Moving makeWrapper to nativeBuildInput might help for this." (and it did)

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
Projects
None yet
Development

No branches or pull requests

1 participant