about summary refs log tree commit diff
path: root/pkgs/desktops
diff options
context:
space:
mode:
authorEduard Carreras <ecarreras@gisce.net>2012-10-12 01:20:47 +0200
committerEduard Carreras <ecarreras@gisce.net>2012-10-12 01:20:47 +0200
commitaa4dc424596989d9ecac5047ea5126ec2a85cbf3 (patch)
treea8f75ace4fc1f8564f824e15eb8a3ad9a9539f99 /pkgs/desktops
parent7924c7f0b8162735e1fbe1d4ef08b5f6c87257d9 (diff)
downloadnixlib-aa4dc424596989d9ecac5047ea5126ec2a85cbf3.tar
nixlib-aa4dc424596989d9ecac5047ea5126ec2a85cbf3.tar.gz
nixlib-aa4dc424596989d9ecac5047ea5126ec2a85cbf3.tar.bz2
nixlib-aa4dc424596989d9ecac5047ea5126ec2a85cbf3.tar.lz
nixlib-aa4dc424596989d9ecac5047ea5126ec2a85cbf3.tar.xz
nixlib-aa4dc424596989d9ecac5047ea5126ec2a85cbf3.tar.zst
nixlib-aa4dc424596989d9ecac5047ea5126ec2a85cbf3.zip
Using a patch to load plugins to xfce4-panel
Diffstat (limited to 'pkgs/desktops')
-rw-r--r--pkgs/desktops/xfce-4.8/core/xfce4-panel-datadir.patch12
-rw-r--r--pkgs/desktops/xfce-4.8/core/xfce4-panel.nix3
2 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/desktops/xfce-4.8/core/xfce4-panel-datadir.patch b/pkgs/desktops/xfce-4.8/core/xfce4-panel-datadir.patch
new file mode 100644
index 000000000000..33853c5f60f8
--- /dev/null
+++ b/pkgs/desktops/xfce-4.8/core/xfce4-panel-datadir.patch
@@ -0,0 +1,12 @@
+diff --git a/panel/panel-module-factory.c b/panel/panel-module-factory.c
+index 529fe85..8c792b7 100644
+--- a/panel/panel-module-factory.c
++++ b/panel/panel-module-factory.c
+@@ -39,6 +39,7 @@
+ #include <panel/panel-module.h>
+ #include <panel/panel-module-factory.h>
+ 
++#define DATADIR "/run/current-system/sw/share/xfce4"
+ #define PANEL_PLUGINS_DATA_DIR     (DATADIR G_DIR_SEPARATOR_S "panel" G_DIR_SEPARATOR_S "plugins")
+ #define PANEL_PLUGINS_DATA_DIR_OLD (DATADIR G_DIR_SEPARATOR_S "panel-plugins")
+ 
diff --git a/pkgs/desktops/xfce-4.8/core/xfce4-panel.nix b/pkgs/desktops/xfce-4.8/core/xfce4-panel.nix
index bb2637129622..e14d1acf33da 100644
--- a/pkgs/desktops/xfce-4.8/core/xfce4-panel.nix
+++ b/pkgs/desktops/xfce-4.8/core/xfce4-panel.nix
@@ -9,6 +9,9 @@ stdenv.mkDerivation rec {
     sha1 = "332fc968332e6271e1bb65d6de8de2524b0440ec";
   };
 
+  patches = [ ./xfce4-panel-datadir.patch ];
+  patchFlags = "-p1";
+
   buildInputs =
     [ pkgconfig intltool gtk libxfce4util garcon libxfce4ui xfconf
       exo libwnck