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
This commit is contained in:
aszlig 2018-04-27 17:41:34 +02:00
parent cc909ff4dd
commit 3dba79e689
No known key found for this signature in database
GPG Key ID: 684089CE67EBB691

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gnutls, gtk2, libgcrypt, pkgconfig, gettext, qt4
{ stdenv, fetchurl, gnutls, gtk2, gtk3, libgcrypt, pkgconfig, gettext, which, qt5
, pluginSearchPaths ? [
"/run/current-system/sw/lib/gwenhywfar/plugins"
@ -21,6 +21,10 @@ in stdenv.mkDerivation rec {
inherit sha256;
};
preConfigure = ''
configureFlagsArray+=("--with-guis=gtk2 gtk3 qt5")
'';
postPatch = let
isRelative = path: builtins.substring 0 1 path != "/";
mkSearchPath = path: ''
@ -44,11 +48,9 @@ in stdenv.mkDerivation rec {
configure
'';
nativeBuildInputs = [ pkgconfig gettext ];
nativeBuildInputs = [ pkgconfig gettext which ];
buildInputs = [ gtk2 qt4 gnutls libgcrypt ];
QTDIR = qt4;
buildInputs = [ gtk2 gtk3 qt5.qtbase gnutls libgcrypt ];
meta = with stdenv.lib; {
description = "OS abstraction functions used by aqbanking and related tools";