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
|
2018-03-12 23:55:30 +01:00
|
|
|
, makeWrapper, xfce4-mixer, hicolor-icon-theme
|
2018-02-25 03:23:58 +01:00
|
|
|
, withGtk3 ? false, gtk3, gettext, glib-networking
|
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";
|
|
|
|
|
2017-10-31 06:50:29 +01:00
|
|
|
postPatch = ''
|
|
|
|
for f in $(find . -name \*.sh); do
|
|
|
|
substituteInPlace $f --replace gettext ${gettext}/bin/gettext
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
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
|
2018-02-25 03:23:58 +01:00
|
|
|
garcon xfconf libstartup_notification makeWrapper hicolor-icon-theme
|
2018-03-12 23:55:30 +01:00
|
|
|
] ++ xfce4-mixer.gst_plugins
|
2015-11-01 04:59:23 +01:00
|
|
|
++ 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" \
|
2018-01-31 20:10:21 +01:00
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH" \
|
2018-02-25 03:23:58 +01:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib-networking}/lib/gio/modules"
|
2014-10-23 13:42:43 +02:00
|
|
|
'';
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|