Any way to interoperate with cabal/cabal.project only users in haskell-template? #106
ParetoOptimalDev
started this conversation in
General
Replies: 1 comment 1 reply
-
I think this can be done. It would involve finishing the Is this additional feature/complexity worth adding to haskell-flake? That's the question to ask. Probably not, as I like to keep haskell-flake simple and as a thin module on top of what's in nixpkgs. People can just specify these sources as flake inputs and use them. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
RIght now if you have a cabal.project with a source-repository-package specified when using haskell-template you'll get an error about git not being found because cabal is trying to clone that source-repository-package as it doesn't have any mechanism to just trust Nix's.
One reason you might find yourself stuck interoperating with cabal.project is because you need to generate darwin binaries, which is not straight-forward to do on Nix at all because (it seems that) truly static binaries on OSX basically don't exist:
Back to cabal though, I believe the root of the issue is because of haskell/cabal#8434 (comment)
One workaround is to modify the cabal.project file and basically remove the source-repository-package before haskell Nix stuff starts like here:
input-output-hk/haskell.nix#1637 (comment)
Also related: input-output-hk/haskell.nix#1637
Edit: looks like I did a more in depth breakdown on this and survey of solutions at: haskell/cabal#8434 (comment)
Beta Was this translation helpful? Give feedback.
All reactions