How to use flake inputs instead of a cabal.project?

Hi! In a Haskell project, Instead of source-repository-package in cabal.project, I’d like to use in overrides for
haskell.packages.ghc92.override a package from GitHub. This package is a build-tool-depends for a local package.

UPD: solution - put lima into testHaskellDepends of clerk.

Here’s the code.

lima executable is in build-tool-depends of a clerk's test.

For now, when doing cabal test, I receive

Error: cabal: Could not resolve dependencies:
[__0] trying: clerk- (user goal)
[__1] trying: clerk:*test
[__2] next goal: clerk:lima:exe.lima (dependency of clerk *test)
[__2] rejecting: clerk:lima:exe.lima-
(does not contain executable 'lima', which is required by clerk *test)
[__2] fail (backjumping, conflict set: clerk, clerk:lima:exe.lima, clerk:test)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: clerk, clerk:test, clerk:lima:exe.lima

I am wondering if you’re hitting:

What happens if you do cabal v1-test?

Thank you! v1-commands work without problems both locally and on GH Actions.

However, cabal test works locally, but fails on GH Actions.

1 Like

That’s pretty strange. If you can figure it out, I would be interested in what’s going on here.