28 stdenv.mkDerivation rec {
32 src = fetchFromGitHub {
36 fetchSubmodules = true;
37 hash = "sha256-pY+5R3W/9pJGiBoDFkxxpuP0I2ZLb+Q/s5UYU20G748=";
40 outputs = [ "out" "doc" ];
70 substituteInPlace tools/updaterevision/UpdateRevision.cmake \
71 --replace "ret_var(Tag)" "ret_var(\"${src.rev}\")" \
72 --replace "ret_var(Timestamp)" "ret_var(\"1970-00-00 00:00:00 +0000\")" \
73 --replace "ret_var(Hash)" "ret_var(\"${src.rev}\")"
85 desktopName = "GZDoom";
86 comment = meta.description;
88 categories = [ "Game" ];
93 mv $out/bin/gzdoom $out/share/games/doom/gzdoom
94 makeWrapper $out/share/games/doom/gzdoom $out/bin/gzdoom
96 for size in 16 24 32 48 64 128; do
97 mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps
98 convert -background none -resize "$size"x"$size" $src/src/win32/icon1.ico -flatten \
99 $out/share/icons/hicolor/"$size"x"$size"/apps/gzdoom.png
104 homepage = "https://github.com/ZDoom/gzdoom";
105 description = "Modder-friendly OpenGL and Vulkan source port based on the DOOM engine";
107 GZDoom is a feature centric port for all DOOM engine games, based on
108 ZDoom, adding an OpenGL renderer and powerful scripting capabilities.
110 license = licenses.gpl3Plus;
111 platforms = platforms.linux;
112 maintainers = with maintainers; [ azahi lassulus ];