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

spago2nix with spago --config #46

Closed jamesdbrock closed 1 year ago

jamesdbrock commented 3 years ago

I'm in a situation where I need to run spago2nix on a spago-extra.dhall.

The spago-extra.dhall includes spago.dhall.

I'm pretty sure there's no good way to do this with spago2nix, right?

justinwoo commented 3 years ago

Does this require forwarding some flags or something?

jamesdbrock commented 3 years ago

Yeah, forwarding flags to spago would suffice.

jamesdbrock commented 3 years ago

We could forward the --config flag.

justinwoo commented 3 years ago

Simplest would probably to just make a function for List String -> Maybe SpagoArgs that we just parse out anything after --, so we don't have to do any more work in the future when these inevitably change

justinwoo commented 3 years ago

looking at this now