1 { lib, fetchgit, SDL, stdenv, libogg, libvorbis, libmad, xdelta }:
3 stdenv.mkDerivation rec {
8 url = "https://git.code.sf.net/p/uhexen2/uhexen2";
9 sha256 = "0crdihbnb92awkikn15mzdpkj1x9s34xixf1r7fxxf762m60niks";
10 rev = "4ef664bc41e3998b0d2a55ff1166dadf34c936be";
13 buildInputs = [ SDL libogg libvorbis libmad xdelta ];
20 "engine/hexen2/server"
21 "engine/hexenworld/client glhw"
22 "engine/hexenworld/client clean"
23 "engine/hexenworld/client hw"
24 "engine/hexenworld/server"
31 for makefile in "''${makeFiles[@]}"; do
35 $makeFlags "''${makeFlagsArray[@]}"
36 $buildFlags "''${buildFlagsArray[@]}"
38 echoCmd 'build flags' ""''${flagsArray[@]}""
39 make -C $makefile ""''${flagsArray[@]}""
47 install -Dm755 engine/hexen2/{glhexen2,hexen2,server/h2ded} -t $out/bin
48 install -Dm755 engine/hexenworld/{client/glhwcl,client/hwcl,server/hwsv} -t $out/bin
49 install -Dm755 h2patch/h2patch -t $out/bin
54 broken = stdenv.isDarwin;
55 description = "A cross-platform port of Hexen II game";
57 Hammer of Thyrion (uHexen2) is a cross-platform port of Raven Software's Hexen II source.
58 It is based on an older linux port, Anvil of Thyrion.
59 HoT includes countless bug fixes, improved music, sound and video modes, opengl improvements,
60 support for many operating systems and architectures, and documentation among many others.
62 homepage = "https://uhexen2.sourceforge.net/";
63 license = licenses.gpl2Plus;
64 maintainers = with maintainers; [ xdhampus ];
65 platforms = platforms.all;