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

Enable support for developing with nix #524

Open
adithyaov opened this issue Dec 29, 2020 · 2 comments
Open

Enable support for developing with nix #524

adithyaov opened this issue Dec 29, 2020 · 2 comments

Comments

@adithyaov
Copy link

adithyaov commented Dec 29, 2020

Add a default.nix which

  • can behave like a dev env when used by nix-shell
  • has attributes with nix expressions that are generated by cabal2nix
@adithyaov adithyaov changed the title Enable support for developing/installing with nix Enable support for developing with nix Dec 31, 2020
@vrom911
Copy link
Member

vrom911 commented Dec 31, 2020

Hey @adithyaov . Thanks for the initiative.
We are not Nix users, so we are not the right people to maintain such kind of configs. Actually, we had the experience already here of having people contribute nix files to us, but it became obsolete with time. Then people were coming to us complaining about non-working configs. As we don't know how to fix it, how to maintain it, we just remove them after all, so the situation is not winning for either of the parts: we can not maintain it, so it is an additional burden on us; users are upset with outdated configs that are not working anymore; and the contributor feels sad as their work is being removed.

So unless we start using Nix ourselves to be able to keep it up to date, I don't see the nice way of having this feature, unfortunately. Especially, if it is even not tested on CI, so we are not aware of when it is broken.

@adithyaov
Copy link
Author

Hi @vrom911,

Thank you for replying. The idea of nix is to have something reproducible and working. In my experience, I find nix very reliable.

Of course, one might need to update the nix file at times. The maintenance overhead might not be in the best interests of the maintainers and regular developers.

With that in mind, I believe the best thing to do is to close the corresponding PR, and if possible, keep this issue open for any future work related to nix.

This (closed) #525 PR serves as a good starting point to add nix to the project.

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