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

Make nix packages additive between stack.yaml and ~/.stack/config.yaml #4401

Open
rybern opened this issue Nov 15, 2018 · 1 comment
Open

Comments

@rybern
Copy link

rybern commented Nov 15, 2018

My understanding is that the nix packages from the local stack.yaml override the nix packages from ~/.stack/config.yaml. That means that if I need to add a project-specific nix package to stack.yaml, I also need to copy all of the nix packages from ~/.stack/config.yaml.

Is this an accurate understanding of the current behavior? If so, I would find it much more convenient if stack instead added the package lists together. Is this as easy as changing nixMonoidPackages in NixOptsMonoid from First [Text] to [Text]?

@dbaynard
Copy link
Contributor

Hi @rybern, I can dig around in the source to check current behaviour. But usually the sort of change you suggested (First [a] to [a]) would need duplicates removing.

I suspect that stack would override the behaviour as project build behaviour should be reproducible no matter what settings there are in ~/.stack/config.yaml. In this case, it would be a design decision not to combine, as that may then mean a project configuration depends on the non–project specific ~/.stack/config.yaml. But I shall check.

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

No branches or pull requests

2 participants