18 stdenv.mkDerivation (finalAttrs: {
20 version = "2188-november-2023-rc1";
22 src = fetchFromGitHub {
25 rev = finalAttrs.version;
26 fetchSubmodules = true;
27 hash = "sha256-rRxw/uThACmT2qI8NUwJU+WbJ3BWUss6CH13R5aaHco=";
49 # Crashes can happen, we'd like them to be reasonably debuggable
50 cmakeBuildType = "RelWithDebInfo";
53 # Because we work around https://github.com/OpenXRay/xray-16/issues/1224 by using GCC,
54 # we need a followup workaround for Darwin locale stuff when using GCC:
55 # runtime error: locale::facet::_S_create_c_locale name not valid
56 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
57 wrapProgram $out/bin/xr_3da \
58 --run 'export LC_ALL=C'
61 # dlopens its own libraries, relies on rpath not having its prefix stripped
64 passthru.updateScript = gitUpdater { };
67 mainProgram = "xr_3da";
68 description = "Improved version of the X-Ray Engine, the game engine used in the world-famous S.T.A.L.K.E.R. game series by GSC Game World";
69 homepage = "https://github.com/OpenXRay/xray-16/";
70 license = licenses.unfree // {
71 url = "https://github.com/OpenXRay/xray-16/blob/${finalAttrs.version}/License.txt";
73 maintainers = with maintainers; [ OPNA2608 ];
74 platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];