nixpkgs/pkgs/games/zod/default.nix
Vladimír Čunát f8a8fc6c7c
Revert "Merge branch 'staging-next'"
This reverts commit 41af38f3728bd64b80721c44ed1fb019978cbc1b, reversing
changes made to f0fec244ca380b9d3e617ee7b419c59758c8b0f1.

Let's delay this.  We have some serious regressions.
2019-09-21 20:05:09 +02:00

46 lines
1.1 KiB
Nix

{ fetchurl, stdenv, unrar, unzip, SDL, SDL_image, SDL_ttf, SDL_mixer
, mysql, makeWrapper }:
stdenv.mkDerivation {
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";
};
hardeningDisable = [ "format" ];
unpackPhase = ''
mkdir src
pushd src
unzip $src
popd
sourceRoot=`pwd`/src
'';
buildInputs = [ unrar unzip SDL SDL_image SDL_ttf SDL_mixer mysql.connector-c makeWrapper ];
NIX_LDFLAGS = "-L${mysql.connector-c}/lib/mysql";
installPhase = ''
mkdir -p $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 = stdenv.lib.licenses.gpl3Plus; /* Says the web */
};
}