mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
6835479544
Multiplayer code was never ported to Linux and crashes even with the vendored cryptopp. Upstream suggested that we should just remove it.
69 lines
1.4 KiB
Nix
69 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, glew
|
|
, freeimage
|
|
, liblockfile
|
|
, openal
|
|
, libtheora
|
|
, SDL2
|
|
, lzo
|
|
, libjpeg
|
|
, libogg
|
|
, pcre
|
|
, makeWrapper
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "openxray";
|
|
version = "1144-december-2021-rc1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenXRay";
|
|
repo = "xray-16";
|
|
rev = version;
|
|
fetchSubmodules = true;
|
|
sha256 = "07qj1lpp21g4p583gvz5h66y2q71ymbsz4g5nr6dcys0vm7ph88v";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
glew
|
|
freeimage
|
|
liblockfile
|
|
openal
|
|
libtheora
|
|
SDL2
|
|
lzo
|
|
libjpeg
|
|
libogg
|
|
pcre
|
|
];
|
|
|
|
# Crashes can happen, we'd like them to be reasonably debuggable
|
|
cmakeBuildType = "RelWithDebInfo";
|
|
dontStrip = true;
|
|
|
|
postInstall = ''
|
|
# needed because of SDL_LoadObject library loading code
|
|
wrapProgram $out/bin/xr_3da \
|
|
--prefix LD_LIBRARY_PATH : $out/lib
|
|
'';
|
|
|
|
meta = with lib; {
|
|
mainProgram = "xray-16";
|
|
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";
|
|
homepage = "https://github.com/OpenXRay/xray-16/";
|
|
license = licenses.unfree // {
|
|
url = "https://github.com/OpenXRay/xray-16/blob/${version}/License.txt";
|
|
};
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
};
|
|
}
|