1 { lib, stdenv, fetchurl, pkg-config, gtk2, libglut, SDL, SDL_mixer, libGLU, libGL, libXi, libXmu }:
3 stdenv.mkDerivation rec {
4 pname = "crack-attack";
8 url = "mirror://savannah/crack-attack/crack-attack-${version}.tar.gz";
9 sha256 = "1sakj9a2q05brpd7lkqxi8q30bccycdzd96ns00s6jbxrzjlijkm";
13 ./crack-attack-1.1.14-gcc43.patch
14 ./crack-attack-1.1.14-glut.patch
19 "--prefix=${placeholder "out"}"
20 "--datadir=${placeholder "out"}/share"
23 nativeBuildInputs = [ pkg-config ];
24 buildInputs = [ gtk2 libglut SDL SDL_mixer libGLU libGL libXi libXmu ];
26 hardeningDisable = [ "format" ];
27 enableParallelBuilding = true;
30 description = "Fast-paced puzzle game inspired by the classic Super NES title Tetris Attack!";
31 mainProgram = "crack-attack";
32 homepage = "https://www.nongnu.org/crack-attack/";
33 license = lib.licenses.gpl2Plus;
34 platforms = lib.platforms.linux;