2021-01-15 05:31:39 +01:00
|
|
|
{ lib, fetchurl, stdenv, unrar, unzip, SDL, SDL_image, SDL_ttf, SDL_mixer
|
2019-09-22 09:38:09 +02:00
|
|
|
, libmysqlclient, makeWrapper }:
|
2011-03-28 18:08:29 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2011-03-28 18:08:29 +02:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2017-10-12 21:07:41 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2011-03-28 18:08:29 +02:00
|
|
|
unpackPhase = ''
|
|
|
|
mkdir src
|
|
|
|
pushd src
|
|
|
|
unzip $src
|
|
|
|
popd
|
|
|
|
sourceRoot=`pwd`/src
|
|
|
|
'';
|
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ unrar unzip SDL SDL_image SDL_ttf SDL_mixer libmysqlclient ];
|
2011-03-28 18:08:29 +02:00
|
|
|
|
2019-09-22 09:38:09 +02:00
|
|
|
NIX_LDFLAGS = "-L${libmysqlclient}/lib/mysql";
|
2011-03-28 18:08:29 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin $out/share/zod
|
2011-03-28 18:08:29 +02:00
|
|
|
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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://zod.sourceforge.net/";
|
2021-01-15 05:31:39 +01:00
|
|
|
license = lib.licenses.gpl3Plus; /* Says the web */
|
2011-03-28 18:08:29 +02:00
|
|
|
};
|
|
|
|
}
|