lol

Merge pull request #19415 from Mic92/opentyrian

opentyrian: 0.0.955 -> 2.1.20130907

authored by

Jörg Thalheim and committed by
GitHub
a41a62d9 f5746575

+10 -11
+10 -11
pkgs/games/opentyrian/default.nix
··· 1 - {stdenv, fetchhg, fetchurl, unzip, SDL, SDL_net}: 1 + {stdenv, fetchurl, fetchzip, SDL, SDL_net}: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "opentyrian-${version}"; 5 - version = "0.0.955"; 5 + version = "2.1.20130907"; 6 6 7 - src = fetchhg { 8 - url = "https://opentyrian.googlecode.com/hg/"; 9 - rev = "13ef8ce47362"; 10 - md5 = "95c8f9e7ff3d4207f1c692c7cec6c9b0"; 7 + src = fetchurl { 8 + url = "https://bitbucket.org/opentyrian/opentyrian/get/${version}.tar.gz"; 9 + sha256 = "1jnrkq616pc4dhlbd4n30d65vmn25q84w6jfv9383l9q20cqf2ph"; 11 10 }; 12 11 13 - data = fetchurl { 12 + data = fetchzip { 14 13 url = http://sites.google.com/a/camanis.net/opentyrian/tyrian/tyrian21.zip; 15 - md5 = "2a3b206a6de25ed4b771af073f8ca904"; 14 + sha256 = "1biz6hf6s7qrwn8ky0g6p8w7yg715w7yklpn6258bkks1s15hpdb"; 16 15 }; 17 16 18 - buildInputs = [SDL SDL_net unzip]; 17 + buildInputs = [SDL SDL_net]; 19 18 20 19 patchPhase = " 21 20 substituteInPlace src/file.c --replace /usr/share $out/share ··· 25 24 mkdir -p $out/bin 26 25 cp ./opentyrian $out/bin 27 26 mkdir -p $out/share/opentyrian/data 28 - unzip -j $data -d $out/share/opentyrian/data 27 + cp -r $data/* $out/share/opentyrian/data 29 28 "; 30 29 31 30 meta = { 32 31 description = ''Open source port of the game "Tyrian"''; 33 - homepage = https://opentyrian.googlecode.com/; 32 + homepage = https://bitbucket.org/opentyrian/opentyrian; 34 33 # This does not account of Tyrian data. 35 34 # license = stdenv.lib.licenses.gpl2; 36 35 };