2012-04-16 03:38:38 +04:00
|
|
|
{stdenv, fetchhg, fetchurl, unzip, SDL, SDL_net}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "opentyrian-${version}";
|
|
|
|
version = "0.0.955";
|
|
|
|
|
|
|
|
src = fetchhg {
|
|
|
|
url = "https://opentyrian.googlecode.com/hg/";
|
2014-06-28 22:33:28 +04:00
|
|
|
rev = "13ef8ce47362";
|
2012-04-16 03:38:38 +04:00
|
|
|
md5 = "95c8f9e7ff3d4207f1c692c7cec6c9b0";
|
|
|
|
};
|
|
|
|
|
|
|
|
data = fetchurl {
|
|
|
|
url = http://sites.google.com/a/camanis.net/opentyrian/tyrian/tyrian21.zip;
|
|
|
|
md5 = "2a3b206a6de25ed4b771af073f8ca904";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [SDL SDL_net unzip];
|
|
|
|
|
|
|
|
patchPhase = "
|
|
|
|
substituteInPlace src/file.c --replace /usr/share $out/share
|
|
|
|
";
|
|
|
|
buildPhase = "make release";
|
|
|
|
installPhase = "
|
2014-06-30 16:56:10 +04:00
|
|
|
mkdir -p $out/bin
|
2012-04-16 03:38:38 +04:00
|
|
|
cp ./opentyrian $out/bin
|
2014-06-30 16:56:10 +04:00
|
|
|
mkdir -p $out/share/opentyrian/data
|
2012-04-16 03:38:38 +04:00
|
|
|
unzip -j $data -d $out/share/opentyrian/data
|
|
|
|
";
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 18:21:08 +04:00
|
|
|
description = ''Open source port of the game "Tyrian"'';
|
2012-04-16 03:38:38 +04:00
|
|
|
homepage = https://opentyrian.googlecode.com/;
|
|
|
|
# This does not account of Tyrian data.
|
|
|
|
# license = stdenv.lib.licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|