I have basically the following in my .cabal file (full repo):
executable bla
main-is: Main.hs
hs-source-dirs:
app
build-depends:
base >=4.7 && <5
pkgconfig-depends: hdf5
Note I don't want to have hs-hdf5 in my package, because that's broken in nixpkgs. I want to use nixpkgs.hdf5 and build the bindings myself.
However, the derivation cabal2nix generates includes hdf5 as an input argument, and that resolves to haskellPackages.hdf5.
I was able to fix this weird situation by doing:
haskellPackages = pkgs.haskellPackages.override
{
hdf5 = super.text;
};
};
But for hopefully obvious reasons, this is not a good solution.
Any way out of this?