19 stdenv.mkDerivation rec {
21 # Fix-Me: Remember to remove SDL2_mixer pin (at top-level) on next lzwolf upgrade.
22 version = "unstable-2022-12-26";
24 src = fetchFromBitbucket {
27 rev = "a24190604296e16941c601b57afe4350462fc659";
28 sha256 = "sha256-CtBdvk6LXb/ll92Fxig/M4t4QNj8dNFJYd8F99b47kQ=";
32 # Pull fix pending upstream inclusion for `gcc-13` support:
33 # https://bitbucket.org/linuxwolf6/lzwolf/pull-requests/5
35 name = "gcc-13.patch";
36 url = "https://bitbucket.org/soturi/lzwolf/commits/41f212026dff4f089d1c0921cb49ab1a2b81e0d6/raw";
37 hash = "sha256-EgSdDaZovD7DyZ0BkuX8ZdsrX7J7v8/D6y5P1NWGJew=";
42 # SDL2_net-2.2.0 changed CMake component name slightly.
43 substituteInPlace src/CMakeLists.txt \
44 --replace 'SDL2::SDL2_net' 'SDL2_net::SDL2_net'
70 install -Dm755 lzwolf "$out/lib/lzwolf/lzwolf"
72 install -Dm644 "$i" "$out/lib/lzwolf/$i"
75 ln -s $out/lib/lzwolf/lzwolf $out/bin/lzwolf
79 homepage = "https://bitbucket.org/linuxwolf6/lzwolf";
80 description = "Enhanced fork of ECWolf, a Wolfenstein 3D source port";
81 mainProgram = "lzwolf";
82 license = licenses.gpl2Plus;
83 platforms = platforms.linux;
84 maintainers = with maintainers; [ tgunnoe ];