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