From fe8aa284c2399137df886a0b4b2d5f3e3083138d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 22 Feb 2017 16:58:45 +0100 Subject: [PATCH] xcbuild: fixup build with glibc-2.25 --- pkgs/development/tools/xcbuild/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/tools/xcbuild/default.nix b/pkgs/development/tools/xcbuild/default.nix index 99859ed9640..0fc56827de8 100644 --- a/pkgs/development/tools/xcbuild/default.nix +++ b/pkgs/development/tools/xcbuild/default.nix @@ -31,6 +31,12 @@ in stdenv.mkDerivation rec { cp -r --no-preserve=all ${linenoise} ThirdParty/linenoise ''; + # Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror. + postPatch = '' + sed 1i'#include ' \ + -i Libraries/xcassets/Headers/xcassets/Slot/SystemVersion.h + ''; + enableParallelBuilding = true; # TODO: instruct cmake not to put it in /usr, rather than cleaning up