pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / games / crack-attack / default.nix
blobd3d34706646220b3ffc54acd3ca71becc0dd6fc8
1 { lib, stdenv, fetchurl, pkg-config, gtk2, libglut, SDL, SDL_mixer, libGLU, libGL, libXi, libXmu }:
3 stdenv.mkDerivation rec {
4   pname = "crack-attack";
5   version = "1.1.14";
7   src = fetchurl {
8     url = "mirror://savannah/crack-attack/crack-attack-${version}.tar.gz";
9     sha256 = "1sakj9a2q05brpd7lkqxi8q30bccycdzd96ns00s6jbxrzjlijkm";
10   };
12   patches = [
13     ./crack-attack-1.1.14-gcc43.patch
14     ./crack-attack-1.1.14-glut.patch
15   ];
17   configureFlags = [
18     "--enable-sound=yes"
19     "--prefix=${placeholder "out"}"
20     "--datadir=${placeholder "out"}/share"
21   ];
23   nativeBuildInputs = [ pkg-config ];
24   buildInputs = [ gtk2 libglut SDL SDL_mixer libGLU libGL libXi libXmu ];
26   hardeningDisable = [ "format" ];
27   enableParallelBuilding = true;
29   meta = {
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;
35     maintainers = [ ];
36   };