diff options
Diffstat (limited to 'pkgs/desktops/xfce4-14/xfce4-panel/default.nix')
-rw-r--r-- | pkgs/desktops/xfce4-14/xfce4-panel/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/desktops/xfce4-14/xfce4-panel/default.nix b/pkgs/desktops/xfce4-14/xfce4-panel/default.nix new file mode 100644 index 00000000000..4f1de32abdf --- /dev/null +++ b/pkgs/desktops/xfce4-14/xfce4-panel/default.nix @@ -0,0 +1,37 @@ +{ mkXfceDerivation, makeWrapper, tzdata, exo, garcon, gtk2, gtk3, gettext, glib-networking, libxfce4ui, libxfce4util, libwnck3, xfconf }: + +mkXfceDerivation rec { + category = "xfce"; + pname = "xfce4-panel"; + version = "4.14pre2"; + rev = "xfce-4.14pre2"; + + sha256 = "1p0bkbxjh14kgny2lpcjg2q8pm55l8i7qsr5bsvdppw3ab46kz34"; + + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ exo garcon gtk2 gtk3 libxfce4ui libxfce4util libwnck3 xfconf ]; + + patches = [ ../../xfce/core/xfce4-panel-datadir.patch ]; + patchFlags = "-p1"; + + postPatch = '' + for f in $(find . -name \*.sh); do + substituteInPlace $f --replace gettext ${gettext}/bin/gettext + done + substituteInPlace plugins/clock/clock.c \ + --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo" \ + --replace "if (!g_file_test (filename, G_FILE_TEST_IS_SYMLINK))" "" + ''; + + configureFlags = [ "--enable-gtk3" ]; + + postInstall = '' + wrapProgram "$out/bin/xfce4-panel" \ + --prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH" \ + --prefix GIO_EXTRA_MODULES : "${glib-networking}/lib/gio/modules" + ''; + + meta = { + description = "Xfce's panel"; + }; +} |