21 stdenv.mkDerivation (finalAttrs: {
25 src = fetchFromGitHub {
28 tag = finalAttrs.version;
29 hash = "sha256-R3Sm/cibg+D2QPS4UisRp91xvz3Ine2BUR8jF5Rbj1g=";
33 git rev-parse HEAD > COMMIT
39 # Fix build with gcc14
41 name = "fix-gcc14.patch";
42 url = "https://github.com/ZDoom/Raze/commit/f3cad8426cd808be5ded036ed12a497d27d3742e.patch";
43 hash = "sha256-TMx5gFmcuSQbVPjpBnKgK7EluqPSWhLF+TU8ZRaL7LE=";
67 (lib.cmakeBool "DYN_GTK" false)
68 (lib.cmakeBool "DYN_OPENAL" false)
72 substituteInPlace tools/updaterevision/gitinfo.h.in \
73 --replace-fail "@Tag@" "${finalAttrs.version}" \
74 --replace-fail "@Hash@" "$(cat COMMIT)" \
75 --replace-fail "@Timestamp@" "1970-01-01 00:00:01 +0000"
79 mv $out/bin/raze $out/share/raze
80 makeWrapper $out/share/raze/raze $out/bin/raze \
81 --set LD_LIBRARY_PATH ${lib.makeLibraryPath [ vulkan-loader ]}
82 install -Dm644 ../source/platform/posix/org.zdoom.Raze.256.png $out/share/pixmaps/org.zdoom.Raze.png
83 install -Dm644 ../source/platform/posix/org.zdoom.Raze.desktop $out/share/applications/org.zdoom.Raze.desktop
84 install -Dm644 ../soundfont/raze.sf2 $out/share/raze/soundfonts/raze.sf2
88 description = "Build engine port backed by GZDoom tech";
90 Raze is a fork of Build engine games backed by GZDoom tech and combines
91 Duke Nukem 3D, Blood, Redneck Rampage, Shadow Warrior and Exhumed/Powerslave
92 in a single package. It is also capable of playing Nam and WW2 GI.
94 homepage = "https://github.com/ZDoom/Raze";
95 license = lib.licenses.gpl2Only;
96 maintainers = with lib.maintainers; [ qubitnano ];
98 platforms = [ "x86_64-linux" ];