Adding crack-attack

(patch sent by Piotr Pietraszkiewicz)

svn path=/nixpkgs/trunk/; revision=23987

+49
+10
pkgs/games/crack-attack/crack-attack-1.1.14-gcc43.patch
··· 1 + --- crack-attack-1.1.14/src/Game.h 2 + +++ crack-attack-1.1.14/src/Game.h 3 + @@ -34,6 +34,7 @@ 4 + #include <climits> 5 + #include <cstdlib> 6 + #include <cmath> 7 + +#include <cstring> 8 + 9 + #ifdef __MINGW32__ 10 + # include <windows.h>
+10
pkgs/games/crack-attack/crack-attack-1.1.14-glut.patch
··· 1 + --- crack-attack-1.1.14/src/Attack.cxx 2 + +++ crack-attack-1.1.14/src/Attack.cxx 3 + @@ -83,6 +83,7 @@ 4 + int height = -1, width = -1; 5 + 6 + player_name[0] = '\0'; 7 + + glutInit(&argc, argv); 8 + parseCommandLine(argc, argv, mode, port, host_name, player_name, height, width); 9 + run_crack_attack(mode, port, host_name, player_name, height, width); 10 +
+27
pkgs/games/crack-attack/default.nix
··· 1 + { stdenv, fetchurl, pkgconfig, gtk, freeglut, SDL, mesa, libXi, libXmu}: 2 + 3 + stdenv.mkDerivation { 4 + name = "crack-attack-1.1.14"; 5 + 6 + src = fetchurl { 7 + url = mirror://savannah/crack-attack/crack-attack-1.1.14.tar.gz; 8 + sha256 = "1sakj9a2q05brpd7lkqxi8q30bccycdzd96ns00s6jbxrzjlijkm"; 9 + }; 10 + 11 + buildInputs = 12 + [ 13 + pkgconfig gtk freeglut SDL mesa libXi libXmu 14 + ]; 15 + 16 + meta = { 17 + description = "A fast-paced puzzle game inspired by the classic Super NES title Tetris Attack!"; 18 + homepage = http://www.nongnu.org/crack-attack/; 19 + license = "GPLv2"; 20 + platforms = stdenv.lib.platforms.linux; 21 + }; 22 + 23 + patches = [ 24 + ./crack-attack-1.1.14-gcc43.patch 25 + ./crack-attack-1.1.14-glut.patch 26 + ]; 27 + }
+2
pkgs/top-level/all-packages.nix
··· 6436 6436 inherit mesa freeglut; 6437 6437 }; 6438 6438 6439 + crack_attack = callPackage ../games/crack-attack { }; 6440 + 6439 6441 eduke32 = callPackage ../games/eduke32 { }; 6440 6442 6441 6443 egoboo = callPackage ../games/egoboo { };