lol

gwenhywfar: Support Gtk 2, Gtk 3 and Qt 5 GUIs

So far we used only the defaults, which are gtk2 and qt5. However
nowadays most applications have already switched to Qt 5 and Gtk 3, so
let's aim for that instead.

The reason Gtk 2 is still there is because GnuCash in nixpkgs is using
the Gtk 2 interface, so we can drop it as soon as a newer GnuCash has
landed in nixpkgs.

Right now the only package that depends on this is GnuCash (and
aqbanking of course), so I've tested this by not only building
gwenhywfar and aqbanking but also GnuCash. I did however not test
whether HBCI functionality works, only whether GnuCash starts up.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @goibhniu, @peti, @domenkozar

aszlig 3dba79e6 cc909ff4

+7 -5
+7 -5
pkgs/development/libraries/aqbanking/gwenhywfar.nix
··· 1 - { stdenv, fetchurl, gnutls, gtk2, libgcrypt, pkgconfig, gettext, qt4 1 + { stdenv, fetchurl, gnutls, gtk2, gtk3, libgcrypt, pkgconfig, gettext, which, qt5 2 2 3 3 , pluginSearchPaths ? [ 4 4 "/run/current-system/sw/lib/gwenhywfar/plugins" ··· 20 20 urls = mkURLs [ "http://www.aquamaniac.de" "http://www2.aquamaniac.de" ]; 21 21 inherit sha256; 22 22 }; 23 + 24 + preConfigure = '' 25 + configureFlagsArray+=("--with-guis=gtk2 gtk3 qt5") 26 + ''; 23 27 24 28 postPatch = let 25 29 isRelative = path: builtins.substring 0 1 path != "/"; ··· 44 48 configure 45 49 ''; 46 50 47 - nativeBuildInputs = [ pkgconfig gettext ]; 48 - 49 - buildInputs = [ gtk2 qt4 gnutls libgcrypt ]; 51 + nativeBuildInputs = [ pkgconfig gettext which ]; 50 52 51 - QTDIR = qt4; 53 + buildInputs = [ gtk2 gtk3 qt5.qtbase gnutls libgcrypt ]; 52 54 53 55 meta = with stdenv.lib; { 54 56 description = "OS abstraction functions used by aqbanking and related tools";