NixOS / cabal2nix

Generate Nix build instructions from a Cabal file
https://haskell4nix.readthedocs.io
Other
360 stars 155 forks source link

Generate nix expressions from cabal.config files #346

Open bsima opened 6 years ago

bsima commented 6 years ago

Stackage publishes package sets at [https://www.stackage.org/lts-11.5/cabal.config][]. I can download this and use it with cabal, and it seems to work as well as using just stack the tool.

The problem is when I want to create a nix-shell that includes all the same packages in the Stackage cabal.config. It would be great if I could take this cabal.config file and just generate all the nix expressions. This way I could use the Stackage package sets (all known to work together) but also use the Nix dependency manager (including my private binary cache, etc).

Is this something within the scope of cabal2nix? I would be willing to work on this if so.

I believe that stackage2nix might do this, but I'm not entirely sure how to use it (I ran into build issues last time I tried to use it).

peti commented 6 years ago

This is pretty much what hackage2nix does, which is included in this repository.