cabal2nix icon indicating copy to clipboard operation
cabal2nix copied to clipboard

Generate nix expressions from cabal.config files

Open bsima opened this issue 7 years ago • 1 comments

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).

bsima avatar Apr 18 '18 17:04 bsima

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

peti avatar Apr 20 '18 13:04 peti