opentyrian: 0.0.955 -> 2.1.20130907

This commit is contained in:
Jörg Thalheim 2016-10-10 08:42:12 +02:00
parent e3deccc0d7
commit 75a6468d3c
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -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;
}; };