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

Could the Agda library be published to Nix Packages under agdaPackages? #387

Open
cyberglot opened this issue Dec 25, 2024 · 3 comments
Open

Comments

@cyberglot
Copy link

I use Nix and I'm playing around with agda2hs, but it's been hard to do all the wiring necessary for this to work. I do not know how much work would that entail, but I am happy to help with that.

@jespercockx
Copy link
Member

I'm not a Nix user myself but I'd be happy with any PRs to improve Nix support for agda2hs.

@liesnikov
Copy link
Contributor

liesnikov commented Jan 6, 2025

This would be great! There's a few things we can improve with the current nix setup, perhaps it would make sense to do a sprint and file within one PR? My wishlist would be:

  1. As you say, having agda2hs-lib available in agdaPackages. I think this one would be the least amount of work - just about adding a derivation here and here.
  2. We have a custom agda2hs derivation that is almost a copy of the upstream agda derivation. Would love to drop that.
  3. We ship agda2hs-executable without agda2hs-lib linked since then one can add other libraries on top (--library-file flags that the derivation uses don't stack, afaik). It would be much nicer to have both agda2hs with the library and have the ability to add new libraries. Perhaps something like this can be done by always adding agda2hs-lib to withPackages list?
  4. It would be good to have a builder that takes agda2hs library and produces an haskell derivation.
  5. Devise some sensible naming scheme for all the derivations we expose in lib and packages now.

The first one is least intrusive against nixpkgs, the others will probably require some patches, e.g. so that we can re-use upstream agda derivation.

@liesnikov
Copy link
Contributor

I added the lib in my fork, but haven't filed a PR against nixpkgs because I'm a bit confused about maintainers etiquette in nixpkgs.

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

3 participants