justinwoo / spago2nix

Generate a derivation of (old) Spago dependencies, and use them to install them into the directory structure used by Spago.
MIT License
42 stars 22 forks source link

Allow specifying alternative version of `spago` #42

Closed evanrelf closed 11 months ago

evanrelf commented 3 years ago

Problem

I was getting the same error described in this issue: https://github.com/justinwoo/spago2nix/issues/29

The problem is spago2nix is using an older version of spago which uses spago list-packages and not the new spago ls packages form.

Solution

I made it possible to customize the version of spago used, following the same format as your existing dhall-json setup.

I also updated the pinned easy-purescript-nix to the latest revision, which also happens to use a compatible version of spago.

thomashoneyman commented 3 years ago

I've run into this issue recently as well. @evanrelf's fix appears to work well.