Author: viric
Date: Tue Sep 28 22:37:27 2010
New Revision: 23987
URL: https://svn.nixos.org/websvn/nix/?rev=23987&sc=1

Log:
Adding crack-attack

(patch sent by Piotr Pietraszkiewicz)

Added:
   nixpkgs/trunk/pkgs/games/crack-attack/
   nixpkgs/trunk/pkgs/games/crack-attack/crack-attack-1.1.14-gcc43.patch
   nixpkgs/trunk/pkgs/games/crack-attack/crack-attack-1.1.14-glut.patch
   nixpkgs/trunk/pkgs/games/crack-attack/default.nix
Modified:
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Added: nixpkgs/trunk/pkgs/games/crack-attack/crack-attack-1.1.14-gcc43.patch
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/games/crack-attack/crack-attack-1.1.14-gcc43.patch       
Tue Sep 28 22:37:27 2010        (r23987)
@@ -0,0 +1,10 @@
+--- crack-attack-1.1.14/src/Game.h
++++ crack-attack-1.1.14/src/Game.h
+@@ -34,6 +34,7 @@
+ #include <climits>
+ #include <cstdlib>
+ #include <cmath>
++#include <cstring>
+ 
+ #ifdef __MINGW32__
+ #  include <windows.h>

Added: nixpkgs/trunk/pkgs/games/crack-attack/crack-attack-1.1.14-glut.patch
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/games/crack-attack/crack-attack-1.1.14-glut.patch        
Tue Sep 28 22:37:27 2010        (r23987)
@@ -0,0 +1,10 @@
+--- crack-attack-1.1.14/src/Attack.cxx
++++ crack-attack-1.1.14/src/Attack.cxx
+@@ -83,6 +83,7 @@
+   int height = -1, width = -1;
+   
+   player_name[0] = '\0';
++  glutInit(&argc, argv);
+   parseCommandLine(argc, argv, mode, port, host_name, player_name, height, 
width);
+   run_crack_attack(mode, port, host_name, player_name, height, width);
+ 

Added: nixpkgs/trunk/pkgs/games/crack-attack/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/games/crack-attack/default.nix   Tue Sep 28 22:37:27 
2010        (r23987)
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl, pkgconfig, gtk, freeglut, SDL, mesa, libXi, libXmu}:
+
+stdenv.mkDerivation {
+  name = "crack-attack-1.1.14";
+
+  src = fetchurl {
+    url = mirror://savannah/crack-attack/crack-attack-1.1.14.tar.gz;
+    sha256 = "1sakj9a2q05brpd7lkqxi8q30bccycdzd96ns00s6jbxrzjlijkm";
+  };
+
+  buildInputs =
+    [ 
+      pkgconfig gtk freeglut SDL mesa libXi libXmu
+    ];
+
+  meta = { 
+    description = "A fast-paced puzzle game inspired by the classic Super NES 
title Tetris Attack!";
+    homepage = http://www.nongnu.org/crack-attack/;
+    license = "GPLv2";
+    platforms = stdenv.lib.platforms.linux;
+  };
+
+  patches = [ 
+    ./crack-attack-1.1.14-gcc43.patch
+    ./crack-attack-1.1.14-glut.patch
+  ];
+}

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Tue Sep 28 16:40:34 
2010        (r23986)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Tue Sep 28 22:37:27 
2010        (r23987)
@@ -6436,6 +6436,8 @@
     inherit mesa freeglut;
   };
 
+  crack_attack = callPackage ../games/crack-attack { };
+
   eduke32 = callPackage ../games/eduke32 { };
 
   egoboo = callPackage ../games/egoboo { };
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to