2016-06-14 16:53:11 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, xorg, gtk, libxfce4util, xfconf
|
2018-02-25 03:23:58 +01:00
|
|
|
, libglade, libstartup_notification, hicolor-icon-theme
|
2015-11-01 04:59:23 +01:00
|
|
|
, withGtk3 ? false, gtk3
|
|
|
|
}:
|
2015-10-14 13:23:37 +02:00
|
|
|
let
|
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";
|
2015-11-20 14:32:58 +01:00
|
|
|
inherit (stdenv.lib) optional;
|
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
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2016-09-01 11:07:23 +02:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2011-08-23 00:51:23 +02:00
|
|
|
|
2016-06-14 16:51:04 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
|
|
|
|
2011-08-23 00:51:23 +02:00
|
|
|
buildInputs =
|
2016-06-14 16:51:04 +02:00
|
|
|
[ gtk libxfce4util xfconf libglade
|
2018-02-25 03:23:58 +01:00
|
|
|
libstartup_notification hicolor-icon-theme
|
2015-11-01 04:59:23 +01:00
|
|
|
] ++ optional withGtk3 gtk3;
|
2011-08-23 00:51:23 +02:00
|
|
|
|
2016-06-14 16:53:11 +02:00
|
|
|
propagatedBuildInputs = [ xorg.libICE xorg.libSM ];
|
|
|
|
|
2015-11-20 14:32:58 +01:00
|
|
|
#TODO: glade?
|
|
|
|
configureFlags = optional withGtk3 "--enable-gtk3";
|
2013-11-12 12:44:20 +01:00
|
|
|
|
2011-08-23 00:51:23 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-10-14 13:23:37 +02:00
|
|
|
meta = with stdenv.lib; {
|
2019-04-15 01:25:45 +02:00
|
|
|
homepage = https://www.xfce.org/;
|
2011-08-23 00:51:23 +02:00
|
|
|
description = "Basic GUI library for Xfce";
|
2015-10-14 13:23:37 +02:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2011-08-23 00:51:23 +02:00
|
|
|
};
|
|
|
|
}
|