2013-02-21 12:16:51 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, gtk, libxfce4util, libxfce4ui
|
2015-11-01 04:59:23 +01:00
|
|
|
, libxfce4ui_gtk3, libwnck, exo, garcon, xfconf, libstartup_notification
|
|
|
|
, makeWrapper, xfce4mixer
|
|
|
|
, withGtk3 ? false, gtk3
|
|
|
|
}:
|
|
|
|
|
|
|
|
with { inherit (stdenv.lib) optional; };
|
2013-02-21 12:16:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
p_name = "xfce4-panel";
|
2015-03-12 22:46:47 +01:00
|
|
|
ver_maj = "4.12";
|
|
|
|
ver_min = "0";
|
2013-02-21 12:16:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://xfce/src/xfce/${p_name}/${ver_maj}/${name}.tar.bz2";
|
2015-03-12 22:46:47 +01:00
|
|
|
sha256 = "1c4p3ckghvsad1sj5v8wmar5mh9cbhail9mmhad2f9pwwb10z4ih";
|
2013-02-21 12:16:51 +01:00
|
|
|
};
|
|
|
|
name = "${p_name}-${ver_maj}.${ver_min}";
|
|
|
|
|
|
|
|
patches = [ ./xfce4-panel-datadir.patch ];
|
|
|
|
patchFlags = "-p1";
|
|
|
|
|
2015-11-01 04:59:23 +01:00
|
|
|
configureFlags = optional withGtk3 "--enable-gtk3";
|
|
|
|
|
2013-02-21 12:16:51 +01:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig intltool gtk libxfce4util exo libwnck
|
2014-10-23 14:08:33 +02:00
|
|
|
garcon xfconf libstartup_notification makeWrapper
|
2015-11-01 04:59:23 +01:00
|
|
|
] ++ xfce4mixer.gst_plugins
|
|
|
|
++ optional withGtk3 gtk3;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ (if withGtk3 then libxfce4ui_gtk3 else libxfce4ui) ];
|
2013-02-21 12:16:51 +01:00
|
|
|
|
2014-10-23 13:42:43 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/xfce4-panel" \
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
|
|
|
|
'';
|
|
|
|
|
2013-02-21 12:16:51 +01:00
|
|
|
preFixup = "rm $out/share/icons/hicolor/icon-theme.cache";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.xfce.org/projects/xfce4-panel;
|
|
|
|
description = "Xfce panel";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2013-02-21 12:16:51 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
|
|
|
};
|
|
|
|
}
|