mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
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:
parent
cc909ff4dd
commit
3dba79e689
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user