diff options
author | Nicolas Pierron <nicolas.b.pierron@gmail.com> | 2012-04-15 23:38:38 +0000 |
---|---|---|
committer | Nicolas Pierron <nicolas.b.pierron@gmail.com> | 2012-04-15 23:38:38 +0000 |
commit | 6a9ac1f01699a28c2d16ee082ff744291675df92 (patch) | |
tree | fe1211f7b630bef285a1fd7866a2f1af78e58d04 /pkgs/games/opentyrian | |
parent | 8a677091830176ba5e820f5421e7d6f7eb938f8c (diff) |
Add opentyrian game.
svn path=/nixpkgs/trunk/; revision=33797
Diffstat (limited to 'pkgs/games/opentyrian')
-rw-r--r-- | pkgs/games/opentyrian/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/games/opentyrian/default.nix b/pkgs/games/opentyrian/default.nix new file mode 100644 index 0000000000000..260b146217cca --- /dev/null +++ b/pkgs/games/opentyrian/default.nix @@ -0,0 +1,37 @@ +{stdenv, fetchhg, fetchurl, unzip, SDL, SDL_net}: + +stdenv.mkDerivation rec { + name = "opentyrian-${version}"; + version = "0.0.955"; + + src = fetchhg { + url = "https://opentyrian.googlecode.com/hg/"; + tag = "13ef8ce47362"; + md5 = "95c8f9e7ff3d4207f1c692c7cec6c9b0"; + }; + + data = fetchurl { + url = http://sites.google.com/a/camanis.net/opentyrian/tyrian/tyrian21.zip; + md5 = "2a3b206a6de25ed4b771af073f8ca904"; + }; + + buildInputs = [SDL SDL_net unzip]; + + patchPhase = " + substituteInPlace src/file.c --replace /usr/share $out/share + "; + buildPhase = "make release"; + installPhase = " + ensureDir $out/bin + cp ./opentyrian $out/bin + ensureDir $out/share/opentyrian/data + unzip -j $data -d $out/share/opentyrian/data + "; + + meta = { + description = ''OpenTyrian is an open source port of the game "Tyrian".''; + homepage = https://opentyrian.googlecode.com/; + # This does not account of Tyrian data. + # license = stdenv.lib.licenses.gpl2; + }; +} |