mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00: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.
|
# 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
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user