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

Requires substituter of target architecture because of cabal2nix #28

Open
bouk opened this issue May 2, 2023 · 2 comments
Open

Requires substituter of target architecture because of cabal2nix #28

bouk opened this issue May 2, 2023 · 2 comments

Comments

@bouk
Copy link
Contributor

bouk commented May 2, 2023

If I use nixos-rebuild on a remote target with a different architecture as my machine (e.g. from my macOS to a Linux machine) I get an error like: error: a 'x86_64-linux' with features {} is required to build '/nix/store/c65zfmmkxdzl37nfi1q7ka0if8hcg6cy-cabal2nix-2.19.1.drv'

It's because cabal2nix uses IFD for translating the .cabal file. I wonder if that generated config can be committed to the repo somehow so we can avoid it?

@Gabriella439
Copy link
Collaborator

Did you use the --build-host option of nixos-rebuild to build on the target?

@bouk
Copy link
Contributor Author

bouk commented May 3, 2023

Yes, but that doesn't help with IFD unfortunately because it needs to evaluate the derivation on the host side before starting the build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants