mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +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