opentyrian: 0.0.955 -> 2.1.20130907
This commit is contained in:
parent
e3deccc0d7
commit
75a6468d3c
|
@ -1,21 +1,20 @@
|
||||||
{stdenv, fetchhg, fetchurl, unzip, SDL, SDL_net}:
|
{stdenv, fetchurl, fetchzip, SDL, SDL_net}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "opentyrian-${version}";
|
name = "opentyrian-${version}";
|
||||||
version = "0.0.955";
|
version = "2.1.20130907";
|
||||||
|
|
||||||
src = fetchhg {
|
src = fetchurl {
|
||||||
url = "https://opentyrian.googlecode.com/hg/";
|
url = "https://bitbucket.org/opentyrian/opentyrian/get/${version}.tar.gz";
|
||||||
rev = "13ef8ce47362";
|
sha256 = "1jnrkq616pc4dhlbd4n30d65vmn25q84w6jfv9383l9q20cqf2ph";
|
||||||
md5 = "95c8f9e7ff3d4207f1c692c7cec6c9b0";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
data = fetchurl {
|
data = fetchzip {
|
||||||
url = http://sites.google.com/a/camanis.net/opentyrian/tyrian/tyrian21.zip;
|
url = http://sites.google.com/a/camanis.net/opentyrian/tyrian/tyrian21.zip;
|
||||||
md5 = "2a3b206a6de25ed4b771af073f8ca904";
|
sha256 = "1biz6hf6s7qrwn8ky0g6p8w7yg715w7yklpn6258bkks1s15hpdb";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [SDL SDL_net unzip];
|
buildInputs = [SDL SDL_net];
|
||||||
|
|
||||||
patchPhase = "
|
patchPhase = "
|
||||||
substituteInPlace src/file.c --replace /usr/share $out/share
|
substituteInPlace src/file.c --replace /usr/share $out/share
|
||||||
|
@ -25,12 +24,12 @@ stdenv.mkDerivation rec {
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp ./opentyrian $out/bin
|
cp ./opentyrian $out/bin
|
||||||
mkdir -p $out/share/opentyrian/data
|
mkdir -p $out/share/opentyrian/data
|
||||||
unzip -j $data -d $out/share/opentyrian/data
|
cp -r $data/* $out/share/opentyrian/data
|
||||||
";
|
";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = ''Open source port of the game "Tyrian"'';
|
description = ''Open source port of the game "Tyrian"'';
|
||||||
homepage = https://opentyrian.googlecode.com/;
|
homepage = https://bitbucket.org/opentyrian/opentyrian;
|
||||||
# This does not account of Tyrian data.
|
# This does not account of Tyrian data.
|
||||||
# license = stdenv.lib.licenses.gpl2;
|
# license = stdenv.lib.licenses.gpl2;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue