2018-03-12 22:00:49 +00:00
|
|
|
{ stdenv, fetchurl, warsow-engine, makeWrapper }:
|
|
|
|
|
2010-01-27 22:22:35 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "warsow-${version}";
|
2018-03-12 22:00:49 +00:00
|
|
|
version = "2.1.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://sebastian.network/warsow/${name}.tar.gz";
|
|
|
|
sha256 = "07y2airw5qg3s1bf1c63a6snjj22riz0mqhk62jmfm9nrarhavrc";
|
2010-01-27 22:22:35 +00:00
|
|
|
};
|
2018-03-12 22:00:49 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2010-01-27 22:22:35 +00:00
|
|
|
installPhase = ''
|
2018-03-12 22:00:49 +00:00
|
|
|
mkdir -p $out/share/warsow
|
|
|
|
cp -r basewsw $out/share/warsow
|
|
|
|
ln -s ${warsow-engine}/lib/warsow $out/share/warsow/libs
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2018-03-12 22:00:49 +00:00
|
|
|
for i in ${warsow-engine}/bin/*; do
|
|
|
|
makeWrapper "$i" "$out/bin/$(basename "$i")" --run "cd $out/share/warsow"
|
|
|
|
done
|
2010-04-03 23:01:36 +00:00
|
|
|
'';
|
2018-03-12 22:00:49 +00:00
|
|
|
|
2015-05-27 19:56:04 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Multiplayer FPS game designed for competitive gaming";
|
2010-01-27 22:22:35 +00:00
|
|
|
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
|
2017-08-06 22:05:18 +00:00
|
|
|
and macOS.
|
2010-01-27 22:22:35 +00:00
|
|
|
'';
|
|
|
|
homepage = http://www.warsow.net;
|
2015-05-28 17:20:29 +00:00
|
|
|
license = licenses.unfreeRedistributable;
|
2018-03-12 22:00:49 +00:00
|
|
|
maintainers = with maintainers; [ astsmtl abbradar ];
|
|
|
|
platforms = warsow-engine.meta.platforms;
|
2010-01-27 22:22:35 +00:00
|
|
|
};
|
|
|
|
}
|