gtk-xfce-engine: add support to Gtk3

+5 -3
+4 -2
pkgs/desktops/xfce/core/gtk-xfce-engine.nix
··· 1 - { stdenv, fetchurl, pkgconfig, intltool, gtk }: 1 + { stdenv, fetchurl, pkgconfig, intltool, gtk, withGtk3 ? false, gtk3 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 p_name = "gtk-xfce-engine"; ··· 11 11 }; 12 12 name = "${p_name}-${ver_maj}.${ver_min}"; 13 13 14 - buildInputs = [ pkgconfig intltool gtk ]; 14 + buildInputs = [ pkgconfig intltool gtk ] ++ stdenv.lib.optional withGtk3 gtk3; 15 + 16 + configureFlags = stdenv.lib.optional withGtk3 "--enable-gtk3"; 15 17 16 18 meta = { 17 19 homepage = http://www.xfce.org/;
+1 -1
pkgs/desktops/xfce/default.nix
··· 21 21 22 22 exo = callPackage ./core/exo.nix { }; 23 23 garcon = callPackage ./core/garcon.nix { }; 24 - gtk_xfce_engine = callPackage ./core/gtk-xfce-engine.nix { }; # ToDo: when should be used? 24 + gtk_xfce_engine = callPackage ./core/gtk-xfce-engine.nix { withGtk3 = true; }; # ToDo: when should be used? 25 25 libxfce4ui = callPackage ./core/libxfce4ui.nix { }; 26 26 libxfce4ui_gtk3 = libxfce4ui.override { withGtk3 = true; }; 27 27 libxfce4util = callPackage ./core/libxfce4util.nix { };