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