2018-07-18 00:14:54 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, gtk2, withGtk3 ? false, gtk3 ? null }:
|
|
|
|
|
|
|
|
assert withGtk3 -> (gtk3 != null);
|
2011-08-22 23:51:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-02-21 11:16:51 +00:00
|
|
|
p_name = "gtk-xfce-engine";
|
2016-05-03 19:14:50 +01:00
|
|
|
ver_maj = "3.2";
|
|
|
|
ver_min = "0";
|
2013-02-21 11:16:51 +00:00
|
|
|
|
2011-08-22 23:51:23 +01:00
|
|
|
src = fetchurl {
|
2013-02-21 11:16:51 +00:00
|
|
|
url = "mirror://xfce/src/xfce/${p_name}/${ver_maj}/${name}.tar.bz2";
|
2016-05-03 19:14:50 +01:00
|
|
|
sha256 = "1va71f3gpl8gikfkmqsd5ikgp7qj8b64jii2l98g1ylnv8xrqp47";
|
2011-08-22 23:51:23 +01:00
|
|
|
};
|
2013-02-21 11:16:51 +00:00
|
|
|
name = "${p_name}-${ver_maj}.${ver_min}";
|
2011-08-22 23:51:23 +01:00
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-07-18 00:14:54 +01:00
|
|
|
buildInputs = [ intltool gtk2 ] ++ stdenv.lib.optional withGtk3 gtk3;
|
|
|
|
|
|
|
|
# `glib-mkenums' is unhappy that some source files are not valid UTF-8
|
|
|
|
postPatch = ''find . -type f -name '*.[ch]' -exec sed -r -i 's/\xD6/O/g' {} +'';
|
|
|
|
|
2016-05-03 19:18:23 +01:00
|
|
|
configureFlags = stdenv.lib.optional withGtk3 "--enable-gtk3";
|
2011-08-22 23:51:23 +01:00
|
|
|
|
|
|
|
meta = {
|
2019-04-15 00:25:45 +01:00
|
|
|
homepage = https://www.xfce.org/;
|
2011-08-22 23:51:23 +01:00
|
|
|
description = "GTK+ theme engine for Xfce";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-09-06 00:30:26 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2011-08-22 23:51:23 +01:00
|
|
|
};
|
|
|
|
}
|