2018-07-17 16:14:54 -07:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, gtk2, withGtk3 ? false, gtk3 ? null }:
|
|
|
|
|
|
|
|
assert withGtk3 -> (gtk3 != null);
|
2011-08-22 15:51:23 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-02-21 03:16:51 -08:00
|
|
|
p_name = "gtk-xfce-engine";
|
2016-05-03 11:14:50 -07:00
|
|
|
ver_maj = "3.2";
|
|
|
|
ver_min = "0";
|
2013-02-21 03:16:51 -08:00
|
|
|
|
2011-08-22 15:51:23 -07:00
|
|
|
src = fetchurl {
|
2013-02-21 03:16:51 -08:00
|
|
|
url = "mirror://xfce/src/xfce/${p_name}/${ver_maj}/${name}.tar.bz2";
|
2016-05-03 11:14:50 -07:00
|
|
|
sha256 = "1va71f3gpl8gikfkmqsd5ikgp7qj8b64jii2l98g1ylnv8xrqp47";
|
2011-08-22 15:51:23 -07:00
|
|
|
};
|
2013-02-21 03:16:51 -08:00
|
|
|
name = "${p_name}-${ver_maj}.${ver_min}";
|
2011-08-22 15:51:23 -07:00
|
|
|
|
2017-09-05 14:26:13 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-07-17 16:14:54 -07: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 11:18:23 -07:00
|
|
|
configureFlags = stdenv.lib.optional withGtk3 "--enable-gtk3";
|
2011-08-22 15:51:23 -07:00
|
|
|
|
|
|
|
meta = {
|
2019-04-14 16:25:45 -07:00
|
|
|
homepage = https://www.xfce.org/;
|
2019-09-03 15:49:40 -07:00
|
|
|
description = "GTK theme engine for Xfce";
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-09-05 16:30:26 -07:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2011-08-22 15:51:23 -07:00
|
|
|
};
|
|
|
|
}
|