13 stdenv.mkDerivation rec {
14 pname = "sauerbraten";
15 version = "2020-12-27";
18 url = "mirror://sourceforge/sauerbraten/sauerbraten_${builtins.replaceStrings [ "-" ] [ "_" ] version}_linux.tar.bz2";
19 sha256 = "0llknzj23vx6f3y452by9c7wlhzclyq4bqi22qd52m3l916z2mn5";
34 sourceRoot = "${src.name}/src";
36 enableParallelBuilding = true;
41 exec = "sauerbraten_client %u";
43 desktopName = "Sauerbraten";
44 comment = "FPS that uses an improved version of the Cube engine";
45 categories = [ "Application" "Game" "ActionGame" ];
52 mkdir -p $out/bin $out/share/icon/ $out/share/sauerbraten $out/share/doc/sauerbraten
53 cp -r "../docs/"* $out/share/doc/sauerbraten/
54 cp sauer_client sauer_server $out/share/sauerbraten/
55 cp -r ../packages ../data $out/share/sauerbraten/
56 ln -s $out/share/sauerbraten/cube.png $out/share/icon/sauerbraten.png
58 makeWrapper $out/share/sauerbraten/sauer_server $out/bin/sauerbraten_server \
59 --chdir "$out/share/sauerbraten"
60 makeWrapper $out/share/sauerbraten/sauer_client $out/bin/sauerbraten_client \
61 --chdir "$out/share/sauerbraten" \
62 --add-flags "-q\''${HOME}/.config/sauerbraten"
68 description = "A free multiplayer & singleplayer first person shooter, the successor of the Cube FPS";
69 homepage = "http://sauerbraten.org";
70 maintainers = with maintainers; [ raskin ajs124 ];
71 mainProgram = "sauerbraten_client";
73 # raskin: tested amd64-linux;
74 # not setting platforms because it is 0.5+ GiB of game data
76 license = "freeware"; # as an aggregate - data files have different licenses code is under zlib license
77 platforms = platforms.linux;