ok, having read a little bit more about this, the Nix approach is useful, and I might try that out at some point, but right now what I want is a Nix-independent way to do this using only Cabal. Does Cabal directly support this feature?
what I want is for someone to be able to download my Git repository which depends on a package stored in yet another Git repository, and be able to build it from source with Cabal without even having Nix installed on their system.
can i depend on a haskell library directly via a tarball/git repository? without any hackage/stackage involvement
I do that all that time. With nix :-D
cf. https://tek.brick.do/7ad58a17-59f7-44b2-9faf-aed58ebc98a9
I believe you can do this in stack.yaml too
neat. do you know if that works with haskell.nix as well?
I'm not too familiar with haskell.nix; but it being such a fundamental feature (even stack supports it) it has to be possible.
ok, having read a little bit more about this, the Nix approach is useful, and I might try that out at some point, but right now what I want is a Nix-independent way to do this using only Cabal. Does Cabal directly support this feature?
what I want is for someone to be able to download my Git repository which depends on a package stored in yet another Git repository, and be able to build it from source with Cabal without even having Nix installed on their system.
Take a look at this file
https://www.github.com/haskell/haskell-ide-engine/tree/master/cabal.project
See the stack file for the stack equivalent.