xcbuild: Guard a glibc-only postPatch with \!isDarwin

This commit is contained in:
John Wiegley 2017-02-23 11:32:32 -08:00
parent 75b187b0f7
commit 6bbddcf7d1
No known key found for this signature in database
GPG Key ID: C144D8F4F19FE630

View File

@ -32,7 +32,7 @@ in stdenv.mkDerivation rec {
''; '';
# Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror. # Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror.
postPatch = '' postPatch = stdenv.lib.optionalString (!stdenv.isDarwin) ''
sed 1i'#include <sys/sysmacros.h>' \ sed 1i'#include <sys/sysmacros.h>' \
-i Libraries/xcassets/Headers/xcassets/Slot/SystemVersion.h -i Libraries/xcassets/Headers/xcassets/Slot/SystemVersion.h
''; '';