1 { stdenv, lib, substituteAll, fetchurl, cmake, libogg, libvorbis, libtheora, curl, freetype
2 , libjpeg, libpng, SDL2, libGL, openal, zlib
5 stdenv.mkDerivation rec {
6 pname = "warsow-engine";
10 url = "http://slice.sh/warsow/warsow_21_sdk.tar.gz";
11 sha256 = "0fj5k7qpf6far8i1xhqxlpfjch10zj26xpilhp95aq2yiz08pj4r";
16 src = ./libpath.patch;
17 inherit zlib curl libpng libjpeg libogg libvorbis libtheora freetype;
21 nativeBuildInputs = [ cmake ];
24 libogg libvorbis libtheora curl freetype libjpeg SDL2 libGL openal zlib
28 # Workaround build failure on -fno-common toolchains:
29 # ld: CMakeFiles/wswtv_server.dir/__/unix/unix_time.c.o:(.bss+0x8): multiple definition of
30 # `c_pointcontents'; CMakeFiles/wswtv_server.dir/__/null/ascript_null.c.o:(.bss+0x8): first defined here
31 NIX_CFLAGS_COMPILE = "-fcommon";
33 cmakeFlags = [ "-DQFUSION_GAME=Warsow" ];
43 cp -r libs $out/lib/warsow
44 for i in warsow.* wsw_server.* wswtv_server.*; do
45 install -Dm755 "$i" "$out/bin/''${i%.*}"
52 description = "Multiplayer FPS game designed for competitive gaming (engine only)";
53 homepage = "http://www.warsow.net";
54 license = licenses.gpl2Plus;
55 maintainers = with maintainers; [ astsmtl abbradar ];
56 platforms = platforms.linux;
57 broken = stdenv.isAarch64;