openxray: Remove multiplayer option, fix license URL

Multiplayer code was never ported to Linux and crashes even with the vendored cryptopp.
Upstream suggested that we should just remove it.

OPNA2608 68354795 4cd95597

+3 -44
+3 -44
pkgs/games/openxray/default.nix
··· 13 13 , libogg 14 14 , pcre 15 15 , makeWrapper 16 - , enableMultiplayer ? false # Requires old, insecure Crypto++ version 17 16 }: 18 17 19 - let 18 + stdenv.mkDerivation rec { 19 + pname = "openxray"; 20 20 version = "1144-december-2021-rc1"; 21 21 22 22 src = fetchFromGitHub { ··· 27 27 sha256 = "07qj1lpp21g4p583gvz5h66y2q71ymbsz4g5nr6dcys0vm7ph88v"; 28 28 }; 29 29 30 - # https://github.com/OpenXRay/xray-16/issues/518 31 - ancientCryptopp = stdenv.mkDerivation { 32 - pname = "cryptopp"; 33 - version = "5.6.5"; 34 - 35 - inherit src; 36 - 37 - sourceRoot = "source/Externals/cryptopp"; 38 - 39 - installFlags = [ "PREFIX=${placeholder "out"}" ]; 40 - 41 - enableParallelBuilding = true; 42 - 43 - doCheck = true; 44 - 45 - dontStrip = true; 46 - 47 - meta = with lib; { 48 - description = "Crypto++, a free C++ class library of cryptographic schemes"; 49 - homepage = "https://cryptopp.com/"; 50 - license = with licenses; [ boost publicDomain ]; 51 - platforms = platforms.all; 52 - knownVulnerabilities = [ 53 - "CVE-2019-14318" 54 - ]; 55 - }; 56 - }; 57 - in 58 - stdenv.mkDerivation rec { 59 - pname = "openxray"; 60 - 61 - inherit version src; 62 - 63 30 nativeBuildInputs = [ 64 31 cmake 65 32 makeWrapper ··· 76 43 libjpeg 77 44 libogg 78 45 pcre 79 - ] ++ lib.optionals enableMultiplayer [ 80 - ancientCryptopp 81 46 ]; 82 47 83 48 # Crashes can happen, we'd like them to be reasonably debuggable 84 49 cmakeBuildType = "RelWithDebInfo"; 85 50 dontStrip = true; 86 51 87 - cmakeFlags = [ 88 - "-DUSE_CRYPTOPP=${if enableMultiplayer then "ON" else "OFF"}" 89 - ] ++ lib.optionals enableMultiplayer [ 90 - "-DCMAKE_INCLUDE_PATH=${ancientCryptopp}/include/cryptopp" 91 - ]; 92 - 93 52 postInstall = '' 94 53 # needed because of SDL_LoadObject library loading code 95 54 wrapProgram $out/bin/xr_3da \ ··· 101 60 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"; 102 61 homepage = "https://github.com/OpenXRay/xray-16/"; 103 62 license = licenses.unfree // { 104 - url = "https://github.com/OpenXRay/xray-16/blob/xd_dev/License.txt"; 63 + url = "https://github.com/OpenXRay/xray-16/blob/${version}/License.txt"; 105 64 }; 106 65 maintainers = with maintainers; [ OPNA2608 ]; 107 66 platforms = [ "x86_64-linux" "i686-linux" ];