cdepillabout / stacklock2nix

Easily build a Haskell project from a stack.yaml.lock file with Nix
BSD 3-Clause "New" or "Revised" License
49 stars 6 forks source link

apply `flags` from `stack.yaml` #54

Open cdepillabout opened 1 month ago

cdepillabout commented 1 month ago

stack.yaml has a top-level flags key to specify Cabal flags to pass to any package:

https://docs.haskellstack.org/en/stable/configure/yaml/project/#flags

It would be nice to for stacklock2nix to interpret this list of flags and apply them automatically to the packages in the package set it generates.

Mr-Andersen commented 1 week ago

Same goes for allow-newer/allow-newer-deps? It seems currently derivations need to be jailbroken on Nix side.