2021-10-17 14:01:48 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, sfml
|
|
|
|
, libGLU
|
|
|
|
, libGL
|
|
|
|
, bullet
|
|
|
|
, glm
|
|
|
|
, libmad
|
|
|
|
, openal
|
|
|
|
, SDL2
|
|
|
|
, boost
|
2023-03-03 18:41:10 +00:00
|
|
|
, ffmpeg_4
|
2021-10-17 14:01:48 +00:00
|
|
|
, Cocoa
|
|
|
|
, OpenAL }:
|
2016-05-28 23:53:56 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-10-17 14:01:48 +00:00
|
|
|
version = "unstable-2021-10-14";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "openrw";
|
2017-09-28 16:47:39 +00:00
|
|
|
|
2021-10-17 14:01:48 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rwengine";
|
|
|
|
repo = "openrw";
|
|
|
|
rev = "0f83c16f6518c427a4f156497c3edc843610c402";
|
|
|
|
sha256 = "0i6nx9g0xb8sziak5swi8636fszcjjx8n2jwgz570izw2fl698ff";
|
2016-05-28 23:53:56 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-12-16 22:55:08 +00:00
|
|
|
postPatch = lib.optional (stdenv.cc.isClang && (lib.versionAtLeast stdenv.cc.version "9"))''
|
|
|
|
substituteInPlace cmake_configure.cmake \
|
|
|
|
--replace 'target_link_libraries(rw_interface INTERFACE "stdc++fs")' ""
|
|
|
|
'';
|
|
|
|
|
2019-10-29 16:59:06 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2017-09-28 16:47:39 +00:00
|
|
|
buildInputs = [
|
2023-03-03 18:41:10 +00:00
|
|
|
sfml libGLU libGL bullet glm libmad openal SDL2 boost ffmpeg_4
|
2021-01-15 04:31:39 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [ OpenAL Cocoa ];
|
2016-05-28 23:53:56 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-05-28 23:53:56 +00:00
|
|
|
description = "Unofficial open source recreation of the classic Grand Theft Auto III game executable";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/rwengine/openrw";
|
2016-05-28 23:53:56 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
longDescription = ''
|
|
|
|
OpenRW is an open source re-implementation of Rockstar Games' Grand Theft
|
|
|
|
Auto III, a classic 3D action game first published in 2001.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ kragniz ];
|
|
|
|
platforms = platforms.all;
|
2023-05-28 06:31:27 +00:00
|
|
|
mainProgram = "rwgame";
|
2016-05-28 23:53:56 +00:00
|
|
|
};
|
|
|
|
}
|