git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19415 from Mic92/opentyrian

opentyrian: 0.0.955 -> 2.1.20130907

commita41a62d96c23d407289ca44439a2df7dd1c30a64 authorJörg Thalheim <joerg@higgsboson.tk> dateMon 10 Oct 2016, 17:56 (10 years ago) parentf57465775a6468
1 file changed+10−11
pkgs/games/opentyrian/default.nix+10−11
pkgs/games/opentyrian/default.nix+10−11
@@ -1,21 +1,20 @@
1−{stdenv, fetchhg, fetchurl, unzip, SDL, SDL_net}:
1+{stdenv, fetchurl, fetchzip, SDL, SDL_net}:
22
33stdenv.mkDerivation rec {
44 name = "opentyrian-${version}";
5− version = "0.0.955";
5+ version = "2.1.20130907";
66
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";
1110 };
1211
13− data = fetchurl {
12+ data = fetchzip {
1413 url = http://sites.google.com/a/camanis.net/opentyrian/tyrian/tyrian21.zip;
15− md5 = "2a3b206a6de25ed4b771af073f8ca904";
14+ sha256 = "1biz6hf6s7qrwn8ky0g6p8w7yg715w7yklpn6258bkks1s15hpdb";
1615 };
1716
18− buildInputs = [SDL SDL_net unzip];
17+ buildInputs = [SDL SDL_net];
1918
2019 patchPhase = "
2120 substituteInPlace src/file.c --replace /usr/share $out/share
@@ -25,12 +24,12 @@ stdenv.mkDerivation rec {
2524 mkdir -p $out/bin
2625 cp ./opentyrian $out/bin
2726 mkdir -p $out/share/opentyrian/data
28− unzip -j $data -d $out/share/opentyrian/data
27+ cp -r $data/* $out/share/opentyrian/data
2928 ";
3029
3130 meta = {
3231 description = ''Open source port of the game "Tyrian"'';
33− homepage = https://opentyrian.googlecode.com/;
32+ homepage = https://bitbucket.org/opentyrian/opentyrian;
3433 # This does not account of Tyrian data.
3534 # license = stdenv.lib.licenses.gpl2;
3635 };