Split some GTK/X11-related packages

The closure of the Pan newsreader is now down from 344 MiB to 195 MiB.
This commit is contained in:
Eelco Dolstra
2012-08-26 22:53:19 -04:00
parent 3d32657782
commit 61129e1ee9
14 changed files with 107 additions and 60 deletions

View File

@@ -14,12 +14,16 @@ assert xcbSupport -> libxcb != null && xcbutil != null;
stdenv.mkDerivation rec {
name = "cairo-1.10.2";
src = fetchurl {
url = "http://cairographics.org/releases/${name}.tar.gz";
sha1 = "ccce5ae03f99c505db97c286a0c9a90a926d3c6e";
};
enableParallelBuilding = true;
outputs = [ "dev" "out" "bin" "doc" ];
buildInputs =
[ pkgconfig x11 fontconfig xlibs.libXrender ]
++ stdenv.lib.optionals xcbSupport [ libxcb xcbutil ]
@@ -32,7 +36,7 @@ stdenv.mkDerivation rec {
stdenv.lib.optional gobjectSupport glib ++
stdenv.lib.optional postscriptSupport zlib ++
stdenv.lib.optional pngSupport libpng;
configureFlags =
[ "--enable-tee" ]
++ stdenv.lib.optional xcbSupport "--enable-xcb"
@@ -45,9 +49,6 @@ stdenv.mkDerivation rec {
-es'|^Cflags:\(.*\)$|Cflags: \1 -I${freetype}/include/freetype2 -I${freetype}/include|g'
'';
# The default `--disable-gtk-doc' is ignored.
postInstall = "rm -rf $out/share/gtk-doc";
meta = {
description = "A 2D graphics library with support for multiple output devices";