summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-25 21:20:39 -0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-25 21:20:39 -0400
commit3d32657782a2971e29823027f01a2333166d834f (patch)
treeb2d5a84a7b5bb30dfd5721a9d361c2d46d0c80b9 /pkgs/development/libraries
parentc642f848389418bfab6b4de811364d0fe6cae005 (diff)
downloadnixpkgs-3d32657782a2971e29823027f01a2333166d834f.tar
nixpkgs-3d32657782a2971e29823027f01a2333166d834f.tar.gz
nixpkgs-3d32657782a2971e29823027f01a2333166d834f.tar.bz2
nixpkgs-3d32657782a2971e29823027f01a2333166d834f.tar.lz
nixpkgs-3d32657782a2971e29823027f01a2333166d834f.tar.xz
nixpkgs-3d32657782a2971e29823027f01a2333166d834f.tar.zst
nixpkgs-3d32657782a2971e29823027f01a2333166d834f.zip
Split glib
In particular, moving the bin subdirectory to a separate output
ensures that the library proper no longer depends on Python and Perl.

The closure of PulseAudio is now down from 325 MiB to 155 MiB.
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/glib/2.30.x.nix11
1 files changed, 5 insertions, 6 deletions
diff --git a/pkgs/development/libraries/glib/2.30.x.nix b/pkgs/development/libraries/glib/2.30.x.nix
index 72baf0154d9..444259ef274 100644
--- a/pkgs/development/libraries/glib/2.30.x.nix
+++ b/pkgs/development/libraries/glib/2.30.x.nix
@@ -19,11 +19,12 @@ stdenv.mkDerivation rec {
     sha256 = "09yxfajynbw78kji48z384lylp67kihfi1g78qrrjif4f5yb5jz6";
   };
 
+  enableParallelBuilding = true;
+
+  outputs = [ "dev" "out" "bin" "doc" ];
+
   # configure script looks for d-bus but it is only needed for tests
-  buildInputs = [ pcre ]
-    ++ (if libiconvOrNull != null
-        then [ libiconvOrNull ]
-        else []);
+  buildInputs = [ pcre ] ++ stdenv.lib.optional (libiconvOrNull != null) libiconvOrNull;
 
   buildNativeInputs = [ perl pkgconfig gettext python ];
 
@@ -33,8 +34,6 @@ stdenv.mkDerivation rec {
 
   passthru.gioModuleDir = "lib/gio/modules";
 
-  postInstall = ''rm -rvf $out/share/gtk-doc'';
-
   meta = {
     description = "GLib, a C library of programming buildings blocks";