Author: NicolasPierron
Date: Sun Apr 15 23:38:38 2012
New Revision: 33797
URL: https://nixos.org/websvn/nix/?rev=33797&sc=1
Log:
Add opentyrian game.
Added:
nixpkgs/trunk/pkgs/games/opentyrian/
nixpkgs/trunk/pkgs/games/opentyrian/default.nix
Modified:
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/games/opentyrian/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/games/opentyrian/default.nix Sun Apr 15 23:38:38
2012 (r33797)
@@ -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;
+ };
+}
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Sun Apr 15 23:31:48
2012 (r33796)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Sun Apr 15 23:38:38
2012 (r33797)
@@ -7842,6 +7842,8 @@
zlib = zlibStatic;
};
+ opentyrian = callPackage ../games/opentyrian { };
+
pioneers = callPackage ../games/pioneers { };
pong3d = callPackage ../games/pong3d { };
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits