2019-11-10 16:44:34 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk2, freeglut, SDL, SDL_mixer, libGLU, libGL, libXi, libXmu }:
|
2010-09-28 23:37:27 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "crack-attack-1.1.14";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "mirror://savannah/crack-attack/crack-attack-1.1.14.tar.gz";
|
2010-09-28 23:37:27 +01:00
|
|
|
sha256 = "1sakj9a2q05brpd7lkqxi8q30bccycdzd96ns00s6jbxrzjlijkm";
|
|
|
|
};
|
|
|
|
|
2018-11-25 16:08:16 +00:00
|
|
|
patches = [
|
|
|
|
./crack-attack-1.1.14-gcc43.patch
|
|
|
|
./crack-attack-1.1.14-glut.patch
|
|
|
|
];
|
|
|
|
|
2020-04-14 08:59:21 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-sound=yes"
|
|
|
|
"--prefix=${placeholder "out"}"
|
|
|
|
"--datadir=${placeholder "out"}/share"
|
|
|
|
];
|
2018-11-25 16:08:16 +00:00
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-11-10 16:44:34 +00:00
|
|
|
buildInputs = [ gtk2 freeglut SDL SDL_mixer libGLU libGL libXi libXmu ];
|
2010-09-28 23:37:27 +01:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2018-11-25 16:08:16 +00:00
|
|
|
enableParallelBuilding = true;
|
2016-02-10 23:04:10 +00:00
|
|
|
|
2011-09-13 21:49:45 +01:00
|
|
|
meta = {
|
2010-09-28 23:37:27 +01:00
|
|
|
description = "A fast-paced puzzle game inspired by the classic Super NES title Tetris Attack!";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.nongnu.org/crack-attack/";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-09-28 23:37:27 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-09-13 21:49:45 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.piotr ];
|
2010-09-28 23:37:27 +01:00
|
|
|
};
|
|
|
|
}
|