Author: viric
Date: Sun Jun 19 22:25:52 2011
New Revision: 27500
URL: https://svn.nixos.org/websvn/nix/?rev=27500&sc=1

Log:
Adding the videogame teeter torture.

Added:
   nixpkgs/trunk/pkgs/games/teetertorture/
   nixpkgs/trunk/pkgs/games/teetertorture/default.nix
Modified:
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Added: nixpkgs/trunk/pkgs/games/teetertorture/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/games/teetertorture/default.nix  Sun Jun 19 22:25:52 
2011        (r27500)
@@ -0,0 +1,31 @@
+{stdenv, fetchurl, SDL, SDL_image, SDL_mixer}:
+
+stdenv.mkDerivation {
+  name = "teeter-torture-20051018";
+  src = fetchurl {
+    url = 
ftp://ftp.tuxpaint.org/unix/x/teetertorture/source/teetertorture-2005-10-18.tar.gz;
+    sha256 = "175gdbkx3m82icyzvwpyzs4v2fd69c695k5n8ca0lnjv81wnw2hr";
+  };
+
+  buildInputs = [ SDL SDL_image SDL_mixer];
+
+  configurePhase = ''
+    sed -i s,data/,$out/share/teetertorture/, src/teetertorture.c
+  '';
+
+  patchPhase = ''
+    sed -i '/free(home)/d' src/teetertorture.c
+  '';
+
+  installPhase = ''
+    ensureDir $out/bin $out/share/teetertorture
+    cp teetertorture $out/bin
+    cp -R data/* $out/share/teetertorture
+  '';
+
+  meta = {
+    homepage = http://www.newbreedsoftware.com/vectoroids/;
+    description = "Simple shooting game with your cannon is sitting atop a 
teeter totter";
+    license = "GPLv2+";
+  };
+}

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sun Jun 19 21:46:45 
2011        (r27499)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sun Jun 19 22:25:52 
2011        (r27500)
@@ -7467,6 +7467,8 @@
 
   tbe = callPackage ../games/the-butterfly-effect {};
 
+  teetertorture = callPackage ../games/teetertorture { };
+
   teeworlds = callPackage ../games/teeworlds { };
 
   tennix = callPackage ../games/tennix { };
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to