1 { lib, stdenv, fetchurl
3 unzip, zlib, curl, libjpeg, libpng, libvorbis, libtheora
6 libX11, libGLU, libGL, libXpm, libXext, libXxf86vm, libXxf86dga, alsa-lib
14 version_short = lib.replaceChars [ "." ] [ "" ] version;
15 in stdenv.mkDerivation {
20 url = "mirror://sourceforge/nexuiz/nexuiz-${version_short}.zip";
21 sha256 = "0010jrxc68qqinkvdh1qn2b8z3sa5v1kcd8d1m4llp3pr6y7xqm5";
24 nativeBuildInputs = [ unzip ];
27 libX11 libGLU libGL libXpm libXext libXxf86vm libXxf86dga alsa-lib
34 unzip enginesource*.zip
39 -rpath ${zlib.out}/lib
40 -rpath ${curl.out}/lib
41 -rpath ${libjpeg.out}/lib
42 -rpath ${libpng.out}/lib
43 -rpath ${libvorbis.out}/lib
44 -rpath ${libtheora.out}/lib
45 -rpath ${libogg.out}/lib
46 -rpath ${libmodplug.out}/lib
50 cd sources/darkplaces/
51 DP_FS_BASEDIR="$out/share/nexuiz"
52 make DP_FS_BASEDIR=$DP_FS_BASEDIR cl-release
53 make DP_FS_BASEDIR=$DP_FS_BASEDIR sdl-release
54 make DP_FS_BASEDIR=$DP_FS_BASEDIR sv-release
60 cp -v sources/darkplaces/darkplaces-glx "$out/bin/nexuiz-glx"
61 cp -v sources/darkplaces/darkplaces-sdl "$out/bin/nexuiz-sdl"
62 cp -v sources/darkplaces/darkplaces-dedicated "$out/bin/nexuiz-dedicated"
63 mkdir -pv "$out/share/nexuiz/"
64 cp -rv data/ "$out/share/nexuiz/"
65 ln -s "$out/bin/nexuiz-sdl" "$out/bin/nexuiz"
71 description = "A free fast-paced first-person shooter";
72 homepage = "http://www.alientrap.org/games/nexuiz";
73 license = lib.licenses.gpl2;
74 platforms = lib.platforms.linux;