git.iko.soy/typeable/nixpkgs
on master help sign in
libxfce4ui xfce4panel: add gtk3 support
commitb03023679923bfd452938d1249644cc1c328419c authorDemin Dmitriy <demindf@gmail.com> dateSun 1 Nov 2015, 06:59 (11 years ago) parentd1b5434
3 files changed+23−11
pkgs/desktops/xfce/core/libxfce4ui.nix+9−6 pkgs/desktops/xfce/core/xfce4-panel.nix+12−4 pkgs/desktops/xfce/default.nix+2−1
pkgs/desktops/xfce/core/libxfce4ui.nix+9−6
@@ -1,5 +1,9 @@
11{ stdenv, fetchurl, pkgconfig, intltool, gtk, libxfce4util, xfconf
2−, libglade, libstartup_notification }:
2+, libglade, libstartup_notification
3+, withGtk3 ? false, gtk3
4+}:
5+
6+with { inherit (stdenv.lib) optional; };
37
48stdenv.mkDerivation rec {
59 p_name = "libxfce4ui";
@@ -14,15 +18,14 @@ stdenv.mkDerivation rec {
1418
1519 #TODO: gladeui
1620 # Install into our own prefix instead.
17− preConfigure =
18− ''
19− configureFlags="--with-libglade-module-path=$out/lib/libglade/2.0"
20− '';
21+ configureFlags = [
22+ "--with-libglade-module-path=$out/lib/libglade/2.0"
23+ ] ++ optional withGtk3 "--enable-gtk3";
2124
2225 buildInputs =
2326 [ pkgconfig intltool gtk libxfce4util xfconf libglade
2427 libstartup_notification
25− ];
28+ ] ++ optional withGtk3 gtk3;
2629
2730 preFixup = "rm $out/share/icons/hicolor/icon-theme.cache";
2831
pkgs/desktops/xfce/core/xfce4-panel.nix+12−4
@@ -1,6 +1,10 @@
11{ stdenv, fetchurl, pkgconfig, intltool, gtk, libxfce4util, libxfce4ui
2−, libwnck, exo, garcon, xfconf, libstartup_notification
3−, makeWrapper, xfce4mixer }:
2+, libxfce4ui_gtk3, libwnck, exo, garcon, xfconf, libstartup_notification
3+, makeWrapper, xfce4mixer
4+, withGtk3 ? false, gtk3
5+}:
6+
7+with { inherit (stdenv.lib) optional; };
48
59stdenv.mkDerivation rec {
610 p_name = "xfce4-panel";
@@ -16,11 +20,15 @@ stdenv.mkDerivation rec {
1620 patches = [ ./xfce4-panel-datadir.patch ];
1721 patchFlags = "-p1";
1822
23+ configureFlags = optional withGtk3 "--enable-gtk3";
24+
1925 buildInputs =
2026 [ pkgconfig intltool gtk libxfce4util exo libwnck
2127 garcon xfconf libstartup_notification makeWrapper
22− ] ++ xfce4mixer.gst_plugins;
23− propagatedBuildInputs = [ libxfce4ui ];
28+ ] ++ xfce4mixer.gst_plugins
29+ ++ optional withGtk3 gtk3;
30+
31+ propagatedBuildInputs = [ (if withGtk3 then libxfce4ui_gtk3 else libxfce4ui) ];
2432
2533 postInstall = ''
2634 wrapProgram "$out/bin/xfce4-panel" \
pkgs/desktops/xfce/default.nix+2−1
@@ -22,6 +22,7 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
2222 garcon = callPackage ./core/garcon.nix { };
2323 gtk_xfce_engine = callPackage ./core/gtk-xfce-engine.nix { }; # ToDo: when should be used?
2424 libxfce4ui = callPackage ./core/libxfce4ui.nix { };
25+ libxfce4ui_gtk3 = libxfce4ui.override { withGtk3 = true; };
2526 libxfce4util = callPackage ./core/libxfce4util.nix { };
2627 libxfcegui4 = callPackage ./core/libxfcegui4.nix { };
2728 thunar = callPackage ./core/thunar.nix { };
@@ -32,6 +33,7 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
3233 = callPackage ./thunar-plugins/dropbox { };
3334 tumbler = callPackage ./core/tumbler.nix { };
3435 xfce4panel = callPackage ./core/xfce4-panel.nix { }; # ToDo: impure plugins from /run/current-system/sw/lib/xfce4
36+ xfce4panel_gtk3 = xfce4panel.override { withGtk3 = true; };
3537 xfce4session = callPackage ./core/xfce4-session.nix { };
3638 xfce4settings = callPackage ./core/xfce4-settings.nix { };
3739 xfce4_power_manager = callPackage ./core/xfce4-power-manager.nix { };
@@ -67,7 +69,6 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
6769
6870 #### PANEL PLUGINS from "mirror://xfce/src/panel-plugins/${p_name}/${ver_maj}/${name}.tar.{bz2,gz}"
6971
70−
7172 xfce4_battery_plugin = callPackage ./panel-plugins/xfce4-battery-plugin.nix { };
7273 xfce4_clipman_plugin = callPackage ./panel-plugins/xfce4-clipman-plugin.nix { };
7374 xfce4_cpufreq_plugin = callPackage ./panel-plugins/xfce4-cpufreq-plugin.nix { };