2013-04-05 10:27:11 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
|
|
|
, expat, glib, cairo, pango, gdk_pixbuf, atk, at_spi2_atk, xlibs
|
2011-09-20 18:18:12 +02:00
|
|
|
, xineramaSupport ? true
|
|
|
|
, cupsSupport ? true, cups ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert xineramaSupport -> xlibs.libXinerama != null;
|
|
|
|
assert cupsSupport -> cups != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-03-29 02:22:29 +01:00
|
|
|
name = "gtk+-3.8.0";
|
2011-09-20 18:18:12 +02:00
|
|
|
|
2012-02-07 22:03:16 +01:00
|
|
|
src = fetchurl {
|
2013-03-29 02:22:29 +01:00
|
|
|
url = "mirror://gnome/sources/gtk+/3.8/${name}.tar.xz";
|
|
|
|
sha256 = "0bi5dip7l6d08c6v9c9aipwsi8hq38xjljqv86nmnpvbkpc4a4yv";
|
2011-09-20 18:18:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-04-05 10:27:11 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
propagatedBuildInputs = with xlibs; [
|
|
|
|
expat glib cairo pango gdk_pixbuf atk at_spi2_atk
|
2013-02-21 17:46:50 +01:00
|
|
|
libXrandr libXrender libXcomposite libXi
|
2013-04-05 10:27:11 +02:00
|
|
|
] ++ stdenv.lib.optional xineramaSupport xlibs.libXinerama
|
2011-09-20 18:18:12 +02:00
|
|
|
++ stdenv.lib.optionals cupsSupport [ cups ];
|
|
|
|
|
|
|
|
postInstall = "rm -rf $out/share/gtk-doc";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A multi-platform toolkit for creating graphical user interfaces";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GTK+ is a highly usable, feature rich toolkit for creating
|
|
|
|
graphical user interfaces which boasts cross platform
|
|
|
|
compatibility and an easy to use API. GTK+ it is written in C,
|
|
|
|
but has bindings to many other popular programming languages
|
|
|
|
such as C++, Python and C# among others. GTK+ is licensed
|
|
|
|
under the GNU LGPL 2.1 allowing development of both free and
|
|
|
|
proprietary software with GTK+ without any license fees or
|
|
|
|
royalties.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://www.gtk.org/;
|
|
|
|
|
|
|
|
license = "LGPLv2+";
|
|
|
|
|
|
|
|
maintainers = with stdenv.lib.maintainers; [urkud raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|