3
0
Fork 0
forked from mirrors/nixpkgs

Adding the zod engine, a multiplayer zed remake.

svn path=/nixpkgs/trunk/; revision=26577
This commit is contained in:
Lluís Batlle i Rossell 2011-03-28 16:08:29 +00:00
parent 8bf1dd5cef
commit 3dcaa029ab
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ fetchurl, stdenv, unrar, unzip, SDL, SDL_image, SDL_ttf, SDL_mixer,
mysql, makeWrapper }:
stdenv.mkDerivation rec {
name = "zod-engine-2011-03-18";
src = fetchurl {
url = "mirror://sourceforge/zod/zod_src-2011-03-18.zip";
sha256 = "00ny7a1yfn9zgl7q1ys27qafwc92dzxv07wjxl8nxa4f98al2g4n";
};
srcAssets = fetchurl {
url = "mirror://sourceforge/zod/zod_assets-2011-03-12.rar";
sha256 = "0gmg4ppr4y6ck04mandlp2fmdcyssmck999m012jx5v1rm57g2hn";
};
unpackPhase = ''
mkdir src
pushd src
unzip $src
popd
sourceRoot=`pwd`/src
'';
buildInputs = [ unrar unzip SDL SDL_image SDL_ttf SDL_mixer mysql
makeWrapper ];
NIX_LDFLAGS="-L${mysql}/lib/mysql";
installPhase = ''
ensureDir $out/bin $out/share/zod
pushd $out/share/zod
unrar x $srcAssets
popd
cp zod $out/bin
wrapProgram $out/bin/zod --run "cd $out/share/zod"
'';
meta = {
description = "Multiplayer remake of ZED";
homepage = http://zod.sourceforge.net/;
license = "GPLv3+"; /* Says the web */
};
}

View file

@ -7218,6 +7218,8 @@ let
zdoom = callPackage ../games/zdoom { };
zod = callPackage ../games/zod { };
zoom = callPackage ../games/zoom { };
keen4 = callPackage ../games/keen4 { };