29 stdenv.mkDerivation rec {
33 src = fetchFromGitHub {
37 fetchSubmodules = true;
38 hash = "sha256-3nkdpJ3XO58YHtjVTwxdSdCL6CnMcih6mTnI7FXLm34=";
74 substituteInPlace tools/updaterevision/UpdateRevision.cmake \
75 --replace-fail "ret_var(Tag)" "ret_var(\"${src.rev}\")" \
76 --replace-fail "ret_var(Timestamp)" "ret_var(\"1970-00-00 00:00:00 +0000\")" \
77 --replace-fail "ret_var(Hash)" "ret_var(\"${src.rev}\")" \
78 --replace-fail "<unknown version>" "${src.rev}"
90 desktopName = "GZDoom";
91 comment = meta.description;
93 categories = [ "Game" ];
98 mv $out/bin/gzdoom $out/share/games/doom/gzdoom
99 makeWrapper $out/share/games/doom/gzdoom $out/bin/gzdoom \
100 --set LD_LIBRARY_PATH ${lib.makeLibraryPath [ vulkan-loader ]}
102 for size in 16 24 32 48 64 128; do
103 mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps
104 magick $src/src/win32/icon1.ico -background none -resize "$size"x"$size" -flatten \
105 $out/share/icons/hicolor/"$size"x"$size"/apps/gzdoom.png
110 homepage = "https://github.com/ZDoom/gzdoom";
111 description = "Modder-friendly OpenGL and Vulkan source port based on the DOOM engine";
112 mainProgram = "gzdoom";
114 GZDoom is a feature centric port for all DOOM engine games, based on
115 ZDoom, adding an OpenGL renderer and powerful scripting capabilities.
117 license = lib.licenses.gpl3Plus;
118 platforms = lib.platforms.linux;
119 maintainers = with lib.maintainers; [