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