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

Drop hnix dependency #55

Open
Profpatsch opened this issue Jan 9, 2021 · 0 comments
Open

Drop hnix dependency #55

Profpatsch opened this issue Jan 9, 2021 · 0 comments

Comments

@Profpatsch
Copy link
Owner

hnix is a parser & evaluator and generating/pretty printing nix expressions is just a side-effect of its functionality. Thus it has a giant amount of dependencies, and given that the Haskell ecosystem is prone to breakage (upper version bounds …), being able to build hnix from nixpkgs is a gamble.

We only generate a few nix expressions, which are relatively simple to string-concatenate, even with a little helper. Since nix is context-free and not whitespace-sensitive, simple interpolation of expressions is always correct.

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

1 participant