1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/games/warsow/default.nix
Nikolay Amiantov 5ed883a40b warsow: 1.03 -> 2.1.2
Fix build, split into engine and game to build engine on Hydra.
2018-03-13 01:08:50 +03:00

39 lines
1.2 KiB
Nix

{ stdenv, fetchurl, warsow-engine, makeWrapper }:
stdenv.mkDerivation rec {
name = "warsow-${version}";
version = "2.1.2";
src = fetchurl {
url = "http://sebastian.network/warsow/${name}.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;
};
}