summary refs log tree commit diff
path: root/pkgs/games/warsow/default.nix
blob: 4c2cd1b5a288541cdc839b6191e197a40e582b61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ stdenv, fetchurl, warsow-engine, makeWrapper }:

stdenv.mkDerivation rec {
  pname = "warsow";
  version = "2.1.2";

  src = fetchurl {
    url = "http://slice.sh/warsow/${pname}-${version}.tar.gz";
    sha256 = "07y2airw5qg3s1bf1c63a6snjj22riz0mqhk62jmfm9nrarhavrc";
  };

  nativeBuildInputs = [ makeWrapper ];

  installPhase = ''
    mkdir -p $out/share/warsow
    cp -r basewsw $out/share/warsow
    ln -s ${warsow-engine}/lib/warsow $out/share/warsow/libs

    mkdir -p $out/bin
    for i in ${warsow-engine}/bin/*; do
      makeWrapper "$i" "$out/bin/$(basename "$i")" --run "cd $out/share/warsow"
    done
  '';

  meta = with stdenv.lib; {
    description = "Multiplayer FPS game designed for competitive gaming";
    longDescription = ''
      Set in a futuristic cartoon-like world where rocketlauncher-wielding
      pigs and lasergun-carrying cyberpunks roam the streets, Warsow is a
      completely free fast-paced first-person shooter (FPS) for Windows, Linux
      and macOS.
    '';
    homepage = "http://www.warsow.net";
    license = licenses.unfreeRedistributable;
    maintainers = with maintainers; [ astsmtl abbradar ];
    platforms = warsow-engine.meta.platforms;
  };
}