mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
xcbuild: Guard a glibc-only postPatch with \!isDarwin
This commit is contained in:
parent
75b187b0f7
commit
6bbddcf7d1
@ -32,7 +32,7 @@ in stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
# 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>' \
|
||||
-i Libraries/xcassets/Headers/xcassets/Slot/SystemVersion.h
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user