20 stdenv.mkDerivation (finalAttrs: {
24 src = fetchFromGitHub {
27 rev = "refs/tags/${finalAttrs.version}";
28 hash = "sha256-R3Sm/cibg+D2QPS4UisRp91xvz3Ine2BUR8jF5Rbj1g=";
32 git rev-parse HEAD > COMMIT
57 (lib.cmakeBool "DYN_GTK" false)
58 (lib.cmakeBool "DYN_OPENAL" false)
62 substituteInPlace tools/updaterevision/gitinfo.h.in \
63 --replace-fail "@Tag@" "${finalAttrs.version}" \
64 --replace-fail "@Hash@" "$(cat COMMIT)" \
65 --replace-fail "@Timestamp@" "1970-01-01 00:00:01 +0000"
69 mv $out/bin/raze $out/share/raze
70 makeWrapper $out/share/raze/raze $out/bin/raze \
71 --set LD_LIBRARY_PATH ${lib.makeLibraryPath [ vulkan-loader ]}
72 install -Dm644 ../source/platform/posix/org.zdoom.Raze.256.png $out/share/pixmaps/org.zdoom.Raze.png
73 install -Dm644 ../source/platform/posix/org.zdoom.Raze.desktop $out/share/applications/org.zdoom.Raze.desktop
74 install -Dm644 ../soundfont/raze.sf2 $out/share/raze/soundfonts/raze.sf2
78 description = "Build engine port backed by GZDoom tech";
80 Raze is a fork of Build engine games backed by GZDoom tech and combines
81 Duke Nukem 3D, Blood, Redneck Rampage, Shadow Warrior and Exhumed/Powerslave
82 in a single package. It is also capable of playing Nam and WW2 GI.
84 homepage = "https://github.com/ZDoom/Raze";
85 license = lib.licenses.gpl2Only;
86 maintainers = with lib.maintainers; [ qubitnano ];
88 platforms = [ "x86_64-linux" ];