From 75a6468d3c2a0e982c7cad49d8a187dc36edb1b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 10 Oct 2016 08:42:12 +0200 Subject: [PATCH] opentyrian: 0.0.955 -> 2.1.20130907 --- pkgs/games/opentyrian/default.nix | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/pkgs/games/opentyrian/default.nix b/pkgs/games/opentyrian/default.nix index c435bbe5887f..c91f9807581e 100644 --- a/pkgs/games/opentyrian/default.nix +++ b/pkgs/games/opentyrian/default.nix @@ -1,21 +1,20 @@ -{stdenv, fetchhg, fetchurl, unzip, SDL, SDL_net}: +{stdenv, fetchurl, fetchzip, SDL, SDL_net}: stdenv.mkDerivation rec { name = "opentyrian-${version}"; - version = "0.0.955"; + version = "2.1.20130907"; - src = fetchhg { - url = "https://opentyrian.googlecode.com/hg/"; - rev = "13ef8ce47362"; - md5 = "95c8f9e7ff3d4207f1c692c7cec6c9b0"; + src = fetchurl { + url = "https://bitbucket.org/opentyrian/opentyrian/get/${version}.tar.gz"; + sha256 = "1jnrkq616pc4dhlbd4n30d65vmn25q84w6jfv9383l9q20cqf2ph"; }; - data = fetchurl { + data = fetchzip { 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 = " substituteInPlace src/file.c --replace /usr/share $out/share @@ -25,12 +24,12 @@ stdenv.mkDerivation rec { mkdir -p $out/bin cp ./opentyrian $out/bin mkdir -p $out/share/opentyrian/data - unzip -j $data -d $out/share/opentyrian/data + cp -r $data/* $out/share/opentyrian/data "; meta = { 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. # license = stdenv.lib.licenses.gpl2; };