git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit862d224c69562f0ce0e0b0bd2e00ebcf8ed27ffd authorPeter Simons <simons@cryp.to> dateSat 21 Feb 2015, 14:41 (12 years ago) parent14fe149
3 files changed+18−3
pkgs/development/haskell-modules/configuration-common.nix+8 pkgs/development/haskell-modules/hackage-packages.nix−3 pkgs/development/haskell-modules/wxc-no-ldconfig.patch+10
pkgs/development/haskell-modules/configuration-common.nix+8
@@ -532,6 +532,14 @@ self: super: {
532532 # https://github.com/NixOS/nixpkgs/issues/6343
533533 c2hs = dontCheck super.c2hs;
534534
535+ # wxc needs help deciding which version of GTK to use.
536+ wxc = overrideCabal (super.wxc.override { wxGTK = pkgs.wxGTK29; }) (drv: {
537+ patches = [ ./wxc-no-ldconfig.patch ];
538+ doHaddock = false;
539+ postInstall = "cp -v dist/build/libwxc.so.${drv.version} $out/lib/libwxc.so";
540+ });
541+ wxcore = super.wxcore.override { wxGTK = pkgs.wxGTK29; };
542+
535543} // {
536544
537545 # Not on Hackage.
pkgs/development/haskell-modules/hackage-packages.nix−3
@@ -122369,7 +122369,6 @@ self: {
122369122369 homepage = "http://haskell.org/haskellwiki/WxHaskell";
122370122370 description = "wxHaskell";
122371122371 license = "unknown";
122372− hydraPlatforms = stdenv.lib.platforms.none;
122373122372 }) {};
122374122373
122375122374 "wxAsteroids" = callPackage
@@ -122417,7 +122416,6 @@ self: {
122417122416 homepage = "http://haskell.org/haskellwiki/WxHaskell";
122418122417 description = "wxHaskell C++ wrapper";
122419122418 license = "unknown";
122420− hydraPlatforms = stdenv.lib.platforms.none;
122421122419 }) { inherit (pkgs.xlibs) libX11; inherit (pkgs) mesa;
122422122420 inherit (pkgs) wxGTK;};
122423122421
@@ -122437,7 +122435,6 @@ self: {
122437122435 homepage = "http://haskell.org/haskellwiki/WxHaskell";
122438122436 description = "wxHaskell core";
122439122437 license = "unknown";
122440− hydraPlatforms = stdenv.lib.platforms.none;
122441122438 }) { inherit (pkgs.xlibs) libX11; inherit (pkgs) mesa;
122442122439 inherit (pkgs) wxGTK;};
122443122440
pkgs/development/haskell-modules/wxc-no-ldconfig.patchnew file+10
@@ -0,0 +1,10 @@
1+Only in wxc-0.91.0.0: dist
2+diff -ubr wxc-0.91.0.0-orig/Setup.hs wxc-0.91.0.0/Setup.hs
3+--- wxc-0.91.0.0-orig/Setup.hs 2014-10-31 13:30:15.514809137 +0100
4++++ wxc-0.91.0.0/Setup.hs 2014-10-31 13:33:53.606372005 +0100
5+@@ -507,5 +507,3 @@
6+ inst_lib_dir = libdir $ absoluteInstallDirs pkg_descr local_bld_info NoCopyDest
7+
8+ installOrdinaryFile (verbosity flags) (bld_dir </> lib_name) (inst_lib_dir </> lib_name)
9+- ldconfig inst_lib_dir
10+-