18 url = "https://www.dxx-rebirth.com/download/dxx/res/d2xr-sc55-music.dxa";
19 sha256 = "05mz77vml396mff43dbs50524rlm4fyds6widypagfbh5hc55qdc";
23 stdenv.mkDerivation rec {
24 pname = "dxx-rebirth";
25 version = "0.60.0-beta2-unstable-2024-08-11";
27 src = fetchFromGitHub {
28 owner = "dxx-rebirth";
30 rev = "bd3c033bdf1faa4606086dcae0436531fb2e7e5c";
31 hash = "sha256-imNHJ55Wp3YueMsNVvb7Z51EyESZnPdtzAOp2TWfdqc=";
34 nativeBuildInputs = [ pkg-config scons ];
36 buildInputs = [ libGLU libGL libpng physfs SDL2 SDL2_image SDL2_mixer ];
38 enableParallelBuilding = true;
40 sconsFlags = [ "sdl2=1" ];
42 env.NIX_CFLAGS_COMPILE = toString [
43 "-Wno-format-nonliteral"
44 "-Wno-format-truncation"
48 install -Dm644 ${music} $out/share/games/dxx-rebirth/${music.name}
49 install -Dm644 -t $out/share/doc/dxx-rebirth *.txt
52 passthru.updateScript = unstableGitUpdater {};
55 description = "Source Port of the Descent 1 and 2 engines";
56 homepage = "https://www.dxx-rebirth.com/";
57 license = licenses.gpl3;
58 maintainers = with maintainers; [ peterhoeg ];
59 platforms = with platforms; linux;