Skip to content

Revert changes to buildPackages for nix-tools #134

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

Conversation

eamsden
Copy link
Contributor

@eamsden eamsden commented May 18, 2019

The changes made before merging #116 broke the use of callStackToNix in a cross-compiled package set. This reverts those changes. Before the changes, callStackToNix would use nix-tools and nix-prefetch-git from the build platform, after the changes, it attempts to build them on the cross-compilation target, and then run them on the build platform.

Simply calling the nix-tools derivation from pkgs.buildPackages is not sufficient, seemingly due to the way haskell.nix propagates the package set and stdenv. I was not able to track down exactly why, but it seems necessary to make a buildPackages scope that can be used to call callStackToNix and/or nix-tools.

This PR reverts that set of changes, so that callStackToNix will work properly on cross-compiled builds.

@angerman
Copy link
Collaborator

is not sufficient, seemingly due to the way haskell.nix propagates the package set and stdenv.

This is something we should fix in haskell.nix properly, I think. I'll look into this.

@angerman
Copy link
Collaborator

angerman commented Jul 2, 2019

I'll close this, as it's starting to bit rot and I still think we should fix this properly in haskell.nix

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

Successfully merging this pull request may close these issues.

2 participants