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
specify nix integration options in stack.yaml #671
Conversation
Great. I didn't know stack had special nix support. As I was saying on #669, we'd like to make this just work when following standard install flow if possible. Those links look useful. |
@efx can you explain why this fixes your issue ? Also why is it enable:false ? |
I think:
|
|
I know it fixed your issue on Arch Linux, but I'm hoping we'll find out how/why it did, and the full effects of these changes. It might not be worth complicating our scripts for everyone if it's just a temporary Arch-specific issue, eg. I see, enabled:true in stack.yaml would mean "always install with nix", while enabled:false means "install with nix if user specifies --nix on command line". Thanks. |
Sorry, I have been getting confused by these nix-related discussions. This seems like a good improvement for folks using nix (enabled via --nix flag or in ~/.stack/config.yaml) and low impact on non-nix users. Thanks! |
@simonmichael no problem! I totally understand the concern for impact on the broader user base. I will be happy to further contribute in getting something that works best across environments. |
Resolves #668, possibly #669.
I was able to successfully build master using this
stack.yaml
and running the following:The
nix-no-pure
preservesLANG
and other user environment variables so the documentation files will build successfully. It may be a better nix practice to use ashell.nix
as outlined here to set theLANG
explicitly. An example file is here