From 2c6de0b9abdbec2d50f0d2f4328943632d4828e6 Mon Sep 17 00:00:00 2001 From: gnidorah Date: Wed, 21 Oct 2020 10:40:51 +0300 Subject: [PATCH] openxray: fix build w/glibc-2.32 --- pkgs/games/openxray/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/games/openxray/default.nix b/pkgs/games/openxray/default.nix index fe2e978c4cc4..394edcf1953a 100644 --- a/pkgs/games/openxray/default.nix +++ b/pkgs/games/openxray/default.nix @@ -50,6 +50,10 @@ in stdenv.mkDerivation rec { preConfigure = '' substituteInPlace src/xrCore/xrCore.cpp \ --replace /usr/share $out/share + + # https://github.com/OpenXRay/xray-16/issues/667 + echo "inline const char* xr_sys_errlist[100] = {};" >> src/Common/PlatformLinux.inl + echo "#define _sys_errlist xr_sys_errlist" >> src/Common/PlatformLinux.inl ''; postInstall = ''