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

initrd cannot be cross-compiled due to pkgs.writeShellScriptBin usage #59245

Closed
delroth opened this issue Apr 10, 2019 · 0 comments
Closed

initrd cannot be cross-compiled due to pkgs.writeShellScriptBin usage #59245

delroth opened this issue Apr 10, 2019 · 0 comments
Labels
6.topic: cross-compilation Building packages on a different sort platform than than they will be run on

Comments

@delroth
Copy link
Contributor

delroth commented Apr 10, 2019

Issue description

The current implementation of pkgs.writeShellScriptBin generates a shell script to be executed on the target, not the host. Looking through most of the usage in nixpkgs, it all seems fine except for the call site in nixos/modules/system/boot/stage-1.nix

I have a local patch replacing it in stage-1.nix with pkgs.writeTextFile { executable = true; ... } but I'm not sure if there's a better solution for this.

@matthewbauer @illegalprime relevant to your interests, maybe.

Steps to reproduce

Try to cross-compile a NixOS initrd.

@FRidh FRidh added the 6.topic: cross-compilation Building packages on a different sort platform than than they will be run on label Apr 10, 2019
@delroth delroth closed this as completed Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: cross-compilation Building packages on a different sort platform than than they will be run on
Projects
None yet
Development

No branches or pull requests

2 participants