Merge #8363: pure-darwin stdenv

This commit is contained in:
Vladimír Čunát
2015-06-18 22:23:55 +02:00
119 changed files with 11653 additions and 3864 deletions

View File

@@ -64,6 +64,8 @@ let
for i in Lib/plat-*/regen; do
substituteInPlace $i --replace /usr/include/ ${stdenv.cc.libc}/include/
done
'' + optionalString stdenv.isDarwin ''
substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
'';
configureFlags = [
@@ -74,6 +76,8 @@ let
"--with-system-ffi"
"--with-system-expat"
"ac_cv_func_bind_textdomain_codeset=yes"
] ++ optionals stdenv.isDarwin [
"--disable-toolbox-glue"
];
postConfigure = if stdenv.isCygwin then ''