19 stdenv.mkDerivation rec {
20 pname = "sauerbraten";
21 version = "2020-12-29";
24 url = "mirror://sourceforge/sauerbraten/sauerbraten_${
25 builtins.replaceStrings [ "-" ] [ "_" ] version
27 hash = "sha256-os3SmonqHRw1+5dIRVt7EeXfnSq298GiyKpusS1K3rM=";
42 sourceRoot = "${src.name}/src";
44 enableParallelBuilding = true;
49 exec = "sauerbraten_client %u";
51 desktopName = "Sauerbraten";
52 comment = "FPS that uses an improved version of the Cube engine";
64 mkdir -p $out/bin $out/share/icon/ $out/share/sauerbraten $out/share/doc/sauerbraten
65 cp -r "../docs/"* $out/share/doc/sauerbraten/
66 cp sauer_client sauer_server $out/share/sauerbraten/
67 cp -r ../packages ../data $out/share/sauerbraten/
68 ln -s $out/share/sauerbraten/cube.png $out/share/icon/sauerbraten.png
70 makeWrapper $out/share/sauerbraten/sauer_server $out/bin/sauerbraten_server \
71 --chdir "$out/share/sauerbraten"
72 makeWrapper $out/share/sauerbraten/sauer_client $out/bin/sauerbraten_client \
73 --chdir "$out/share/sauerbraten" \
74 --add-flags "-q\''${HOME}/.config/sauerbraten"
80 description = "Free multiplayer & singleplayer first person shooter, the successor of the Cube FPS";
81 homepage = "http://sauerbraten.org";
82 maintainers = with lib.maintainers; [
86 mainProgram = "sauerbraten_client";
88 # raskin: tested amd64-linux;
89 # not setting platforms because it is 0.5+ GiB of game data
91 license = "freeware"; # as an aggregate - data files have different licenses code is under zlib license
92 platforms = lib.platforms.linux;