haskell-wxc: fix build

Our 'wxGTK' attribute refers to wxwidgets 2.8 by default, but haskell-wxc needs
version 2.9 or later.

Resolves https://github.com/NixOS/nixpkgs/issues/6478.
This commit is contained in:
Peter Simons
2015-02-21 18:53:35 +01:00
parent 14fe149551
commit 862d224c69
3 changed files with 18 additions and 3 deletions
@@ -532,6 +532,14 @@ self: super: {
# https://github.com/NixOS/nixpkgs/issues/6343
c2hs = dontCheck super.c2hs;
# wxc needs help deciding which version of GTK to use.
wxc = overrideCabal (super.wxc.override { wxGTK = pkgs.wxGTK29; }) (drv: {
patches = [ ./wxc-no-ldconfig.patch ];
doHaddock = false;
postInstall = "cp -v dist/build/libwxc.so.${drv.version} $out/lib/libwxc.so";
});
wxcore = super.wxcore.override { wxGTK = pkgs.wxGTK29; };
} // {
# Not on Hackage.