2011-08-23 00:51:23 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, gtk, libxfce4util, xfconf
|
2015-11-01 04:59:23 +01:00
|
|
|
, libglade, libstartup_notification
|
|
|
|
, withGtk3 ? false, gtk3
|
|
|
|
}:
|
|
|
|
|
|
|
|
with { inherit (stdenv.lib) optional; };
|
2011-08-23 00:51:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-02-21 12:16:51 +01:00
|
|
|
p_name = "libxfce4ui";
|
2015-03-12 22:46:47 +01:00
|
|
|
ver_maj = "4.12";
|
2015-04-06 22:15:38 +02:00
|
|
|
ver_min = "1";
|
2013-02-21 12:16:51 +01:00
|
|
|
|
2011-08-23 00:51:23 +02:00
|
|
|
src = fetchurl {
|
2013-02-21 12:16:51 +01:00
|
|
|
url = "mirror://xfce/src/xfce/${p_name}/${ver_maj}/${name}.tar.bz2";
|
2015-04-06 22:15:38 +02:00
|
|
|
sha256 = "3d619811bfbe7478bb984c16543d980cadd08586365a7bc25e59e3ca6384ff43";
|
2011-08-23 00:51:23 +02:00
|
|
|
};
|
2013-02-21 12:16:51 +01:00
|
|
|
name = "${p_name}-${ver_maj}.${ver_min}";
|
2011-08-23 00:51:23 +02:00
|
|
|
|
2013-02-21 12:16:51 +01:00
|
|
|
#TODO: gladeui
|
2011-08-23 00:51:23 +02:00
|
|
|
# Install into our own prefix instead.
|
2015-11-01 04:59:23 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-libglade-module-path=$out/lib/libglade/2.0"
|
|
|
|
] ++ optional withGtk3 "--enable-gtk3";
|
2011-08-23 00:51:23 +02:00
|
|
|
|
|
|
|
buildInputs =
|
2013-02-21 12:16:51 +01:00
|
|
|
[ pkgconfig intltool gtk libxfce4util xfconf libglade
|
2011-08-23 00:51:23 +02:00
|
|
|
libstartup_notification
|
2015-11-01 04:59:23 +01:00
|
|
|
] ++ optional withGtk3 gtk3;
|
2011-08-23 00:51:23 +02:00
|
|
|
|
2013-11-12 12:44:20 +01:00
|
|
|
preFixup = "rm $out/share/icons/hicolor/icon-theme.cache";
|
|
|
|
|
2011-08-23 00:51:23 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.xfce.org/;
|
|
|
|
description = "Basic GUI library for Xfce";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2015-03-12 22:46:47 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-08-23 00:51:23 +02:00
|
|
|
};
|
|
|
|
}
|