Closed nek0 closed 2 years ago
I believe this is related to #388. What I assume that is happening is that you have a build-type: Custom
in your .cabal
file and a Setup.hs
that depends on cabal-doctest
. However cabal-doctest
is not(?) properly listed in the build-depends/setup-depends? And thus the plan doesn't contain cabal-doctest
and subsequently when trying to build the custom Setup.hs
we fail to find cabal-doctest
for it.
none of my projects uses build-type: Custom
, so I don't know, where this comes from...
I had the same issue in my project and was able to work around it by adding this to my haskell-nix.cabalProject
derivation, per https://github.com/input-output-hk/haskell.nix/issues/221:
modules = [
{ reinstallableLibGhc = true; }
];
reinstallableLibGhc is now the default and I think cabal-doctest support works reasonably well now. See https://github.com/input-output-hk/haskell.nix/tree/master/test/cabal-doctests for an example.
HI,
When building an environment for a multi-package project I have to use plan-to-nix, according to the user handbook. When doing so, the package
cabal-doctest
seems not to be included into the package definitions of pkgs.nix and the build fails with:I'm not using stack, just plain cabal, to build my projects and I updated the package definitions.
Can somebody have a look into this matter, please?