glibc: Split into multiple outputs

This reduces the size of closures a lot by getting rid of Glibc's
header files, static libraries and utilities.  For instance, the
closure of GNU Hello went from 41 MiB to 22 MiB.

TODO: We may want to merge back in parts of Glibc that we previously
split off (such as the info files).
This commit is contained in:
Eelco Dolstra
2013-06-11 18:39:23 +02:00
parent b9049bff6d
commit d8231a66eb
8 changed files with 32 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
{ fetchurl, stdenv, gettext }:
stdenv.mkDerivation (rec {
stdenv.mkDerivation rec {
name = "libelf-0.8.13";
src = fetchurl {
@@ -10,6 +10,11 @@ stdenv.mkDerivation (rec {
doCheck = true;
# Libelf's custom NLS macros fail to determine the catalog file extension on
# Darwin, so disable NLS for now.
# FIXME: Eventually make Gettext a build input on all platforms.
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-nls";
meta = {
description = "Libelf, an ELF object file access library";
@@ -21,12 +26,3 @@ stdenv.mkDerivation (rec {
maintainers = [ stdenv.lib.maintainers.ludo ];
};
}
//
# Libelf's custom NLS macros fail to determine the catalog file extension on
# Darwin, so disable NLS for now.
# FIXME: Eventually make Gettext a build input on all platforms.
(if stdenv.isDarwin
then { configureFlags = [ "--disable-nls" ]; }
else { }))