diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2011-03-28 16:08:29 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2011-03-28 16:08:29 +0000 |
commit | 3dcaa029ab5b2fa4d9740b401e5ca35d4c08d134 (patch) | |
tree | a87f977f44de749d26af6c8a899984bc473afc85 /pkgs/games/zod | |
parent | 8bf1dd5cefe3c60c7c8e0b99989e6f2011bba0a8 (diff) |
Adding the zod engine, a multiplayer zed remake.
svn path=/nixpkgs/trunk/; revision=26577
Diffstat (limited to 'pkgs/games/zod')
-rw-r--r-- | pkgs/games/zod/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/games/zod/default.nix b/pkgs/games/zod/default.nix new file mode 100644 index 0000000000000..731a5e40fd808 --- /dev/null +++ b/pkgs/games/zod/default.nix @@ -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 */ + }; +} |