Adding crack-attack
(patch sent by Piotr Pietraszkiewicz) svn path=/nixpkgs/trunk/; revision=23987
This commit is contained in:
parent
fea2d56f09
commit
cecffb9df5
10
pkgs/games/crack-attack/crack-attack-1.1.14-gcc43.patch
Normal file
10
pkgs/games/crack-attack/crack-attack-1.1.14-gcc43.patch
Normal file
@ -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>
|
10
pkgs/games/crack-attack/crack-attack-1.1.14-glut.patch
Normal file
10
pkgs/games/crack-attack/crack-attack-1.1.14-glut.patch
Normal file
@ -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);
|
||||||
|
|
27
pkgs/games/crack-attack/default.nix
Normal file
27
pkgs/games/crack-attack/default.nix
Normal file
@ -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
|
||||||
|
];
|
||||||
|
}
|
@ -6436,6 +6436,8 @@ let
|
|||||||
inherit mesa freeglut;
|
inherit mesa freeglut;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
crack_attack = callPackage ../games/crack-attack { };
|
||||||
|
|
||||||
eduke32 = callPackage ../games/eduke32 { };
|
eduke32 = callPackage ../games/eduke32 { };
|
||||||
|
|
||||||
egoboo = callPackage ../games/egoboo { };
|
egoboo = callPackage ../games/egoboo { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user