Open peti opened 9 years ago
This is probably caused by the fixGtkBuilds
function I added as a hack to work around https://github.com/NixOS/cabal2nix/issues/136.
Is this still an issue. I am trying to build the new version (1.0.0) of haskellPackages.taffybar which is failing with the error:
Setup: The pkg-config package 'gtk+-3.0' is required but it could not be
found.
@PierreR was just trying to update to taffybar 1.0.0 myself and am running into the same problem.
I'm not sure if it's related to this issue, but using cabal2nix
for both cabal://gtk-traymanager-1.0.0
and cabal://taffybar-1.0.0
result in gtk3 not being in the libraryPkgconfigDepends
, even though they are in listed in the cabal file with pkgconfig-depends: gtk+-3.0, x11
. Other libraries that need gtk3, like leksah, get their libraryPkgconfigDepends
set up fine.
After a bit of experimenting with mucking about with the cabal file, it seems that if gtk3
appears as a dependency in build-depends
and gtk+-3.0
appears in pkgconfig-depends
, then gtk3
will only appear in the libraryHaskellDepends
list. If it doesn't appear in build-depends
but does show up in pkgconfig-depends
, it shows up fine in libraryPkgconfigDepends
.
Any ideas how to fix this @peti?
The
gtk3
library haspkgconfigDepends = [ gtk3 ]
, but for some reasonhackage2nix
adds agtk3 = null
override even thoughgtk3
exists inpkgs
and is the correct choice to fulfill this dependency.