@@ -1,69 +0,0 @@
1−{ stdenv, fetchurl, cmake, libGLU_combined, SDL, libjpeg, libpng, glew, libwebp, ncurses
2−, gmp, curl, nettle, openal, speex, libogg, libvorbis, libtheora, xvidcore
3−, makeWrapper }:
4−stdenv.mkDerivation rec {
5− name = "unvanquished-${version}";
6− version = "0.13.1";
7− src = fetchurl {
8− url = "https://github.com/Unvanquished/Unvanquished/archive/v${version}.tar.gz";
9− sha256 = "1k7mlpwalimn6xb2s760f124xncpg455qvls6z3x0ii5x0wc1mp2";
10− };
11− buildInputs = [ cmake libGLU_combined SDL libjpeg libpng glew libwebp ncurses gmp curl
12− nettle openal speex libogg libvorbis libtheora xvidcore
13− makeWrapper ];
14− preConfigure = ''prefix="$prefix/opt"'';
15− postInstall = ''
16− # cp -r ../main "$prefix/Unvanquished/"
17− mkdir -p "$out/bin"
18− substituteInPlace download-pk3.sh --replace /bin/bash ${stdenv.shell}
19− cp -v download-pk3.sh "$out/bin/unvanquished-download-pk3"
20− makeWrapper "$prefix/Unvanquished/daemon" "$out/bin/unvanquished" \
21− --run '[ -f ~/.Unvanquished/main/md5sums ] &&
22− cd ~/.Unvanquished/main/ &&
23− md5sum --quiet -c md5sums ||
24− unvanquished-download-pk3' \
25− --run "cd '$prefix/Unvanquished'"
26− makeWrapper "$prefix/Unvanquished/daemonded" "$out/bin/unvanquished-ded" \
27− --run '[ -f ~/.Unvanquished/main/md5sums ] &&
28− cd ~/.Unvanquished/main/ &&
29− md5sum --quiet -c md5sums ||
30− unvanquished-download-pk3' \
31− --run "cd '$prefix/Unvanquished'"
32− '';
33−
34− meta = {
35− description = "FPS game set in a futuristic, sci-fi setting";
36− longDescription = ''
37− Unvanquished is a free, open-source first-person shooter
38− combining real-time strategy elements with a futuristic, sci-fi
39− setting. It is available for Windows, Linux, and macOS.
40−
41− Features:
42−
43− * Two teams
44− Play as either the technologically advanced humans or the highly
45− adaptable aliens, with a fresh gameplay experience on both
46− sides.
47−
48− * Build a base
49− Construct and maintain your base with a variety of useful
50− structures, or group up with teammates to take on the other
51− team.
52−
53− * Level up
54− Earn rewards for victories against the other team, whether it's
55− a deadly new weapon or access to a whole new alien form.
56−
57− * Customize
58− Compatibility with Quake 3 file formats and modification tools
59− allows for extensive customization of the game and its
60− setting.
61− '';
62− homepage = http://unvanquished.net;
63− #license = "unknown";
64− maintainers = with stdenv.lib.maintainers; [ astsmtl ];
65− platforms = stdenv.lib.platforms.linux;
66− # This package can take a lot of disk space, so unavailable from channel
67− hydraPlatforms = [];
68− };
69−}