From 6bbddcf7d1aa4f2365c2ac6383902080340c6ce2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 23 Feb 2017 11:32:32 -0800 Subject: [PATCH] xcbuild: Guard a glibc-only postPatch with \!isDarwin --- pkgs/development/tools/xcbuild/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/xcbuild/default.nix b/pkgs/development/tools/xcbuild/default.nix index 0fc56827de83..f2be61bd2139 100644 --- a/pkgs/development/tools/xcbuild/default.nix +++ b/pkgs/development/tools/xcbuild/default.nix @@ -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 ' \ -i Libraries/xcassets/Headers/xcassets/Slot/SystemVersion.h '';