Merge commit staging+systemd into closure-size

Many non-conflict problems weren't (fully) resolved in this commit yet.
This commit is contained in:
Vladimír Čunát
2015-10-03 13:33:13 +02:00
6304 changed files with 708456 additions and 130039 deletions

View File

@@ -13,9 +13,17 @@ stdenv.mkDerivation rec {
sha256 = "039agw5rqvqny92cpkrfn243x2gd4xn13hs3xi6isk55d2vqqr9n";
};
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace configure \
--replace '/usr/bin/libtool' 'ar' \
--replace 'AR="libtool"' 'AR="ar"' \
--replace 'ARFLAGS="-o"' 'ARFLAGS="-r"'
'';
outputs = [ "dev" "out" "static" "man" ];
setOutputFlags = false;
preConfigure = ''
if test -n "$crossConfig"; then
export CC=$crossConfig-gcc
@@ -54,8 +62,8 @@ stdenv.mkDerivation rec {
makeFlags = [ "RANLIB=${stdenv.cross.config}-ranlib" ];
};
# zlib doesn't like the automatic --disable-shared from the Cygwin stdenv.
cygwinConfigureEnableShared = true;
# CYGXXX: This is not needed anymore and non-functional, but left not to trigger rebuilds
cygwinConfigureEnableShared = if (!stdenv.isCygwin) then true else null;
passthru.version = version;