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
|
2015-10-14 13:23:37 +02:00
|
|
|
, makeWrapper, xfce4mixer, hicolor_icon_theme
|
2015-11-01 04:59:23 +01:00
|
|
|
, withGtk3 ? false, gtk3
|
2015-10-14 13:23:37 +02:00
|
|
|
}:
|
|
|
|
let
|
2015-11-20 14:32:58 +01:00
|
|
|
inherit (stdenv.lib) optional;
|
2013-02-21 12:16:51 +01:00
|
|
|
p_name = "xfce4-panel";
|
2015-03-12 22:46:47 +01:00
|
|
|
ver_maj = "4.12";
|
2017-02-09 21:31:21 +01:00
|
|
|
ver_min = "1";
|
2015-10-14 13:23:37 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${p_name}-${ver_maj}.${ver_min}";
|
2013-02-21 12:16:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://xfce/src/xfce/${p_name}/${ver_maj}/${name}.tar.bz2";
|
2017-02-09 21:31:21 +01:00
|
|
|
sha256 = "1s52k80911pkp65zkxw9mrnczxsd81svr0djmmcfpjd9rj08pmck";
|
2013-02-21 12:16:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./xfce4-panel-datadir.patch ];
|
|
|
|
patchFlags = "-p1";
|
|
|
|
|
2016-09-01 11:07:23 +02:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2015-10-14 13:23:37 +02:00
|
|
|
|
2013-02-21 12:16:51 +01:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig intltool gtk libxfce4util exo libwnck
|
2015-10-14 13:23:37 +02:00
|
|
|
garcon xfconf libstartup_notification makeWrapper hicolor_icon_theme
|
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
|
|
|
|
2015-11-20 14:32:58 +01:00
|
|
|
configureFlags = optional withGtk3 "--enable-gtk3";
|
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
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-10-14 13:23:37 +02:00
|
|
|
meta = with stdenv.lib; {
|
2013-02-21 12:16:51 +01:00
|
|
|
homepage = http://www.xfce.org/projects/xfce4-panel;
|
|
|
|
description = "Xfce panel";
|
2015-10-14 13:23:37 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.eelco ];
|
2013-02-21 12:16:51 +01:00
|
|
|
};
|
|
|
|
}
|
2015-10-14 13:23:37 +02:00
|
|
|
|