20 version = "0-unstable-2024-04-20";
23 src = fetchFromGitHub {
26 rev = "f10a5a8f7abc79a0728847e9a10ee104a1216047";
27 hash = "sha256-4ydwPh/pCzuZNNOyZuEEeX4wzI+dqTtAxUyXOXz76zk=";
28 fetchSubmodules = true;
32 # SoundSource.cpp: return AVERROR_EOF when buffer is empty
33 # https://github.com/rwengine/openrw/pull/747
37 postPatch = lib.optional (stdenv.cc.isClang && (lib.versionAtLeast stdenv.cc.version "9"))''
38 substituteInPlace cmake_configure.cmake \
39 --replace 'target_link_libraries(rw_interface INTERFACE "stdc++fs")' ""
42 nativeBuildInputs = [ cmake ninja ];
45 sfml libGLU libGL bullet glm libmad openal SDL2 boost ffmpeg_6
46 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ OpenAL Cocoa ];
49 description = "Unofficial open source recreation of the classic Grand Theft Auto III game executable";
50 homepage = "https://github.com/rwengine/openrw";
51 license = licenses.gpl3;
53 OpenRW is an open source re-implementation of Rockstar Games' Grand Theft
54 Auto III, a classic 3D action game first published in 2001.
56 maintainers = with maintainers; [ kragniz ];
57 platforms = platforms.all;
58 mainProgram = "rwgame";