@@ -0,0 +1,68 @@
1+{ lib
2+, stdenv
3+, fetchurl
4+, autoconf
5+, automake
6+, SDL
7+, SDL_mixer
8+, SDL_image
9+, libmikmod
10+, tinyxml
11+}:
12+
13+stdenv.mkDerivation rec {
14+ pname = "tecnoballz";
15+ version = "0.93.1";
16+
17+ src = fetchurl {
18+ url = "https://linux.tlk.fr/games/TecnoballZ/download/tecnoballz-${version}.tgz";
19+ sha256 = "sha256-WRW76e+/eXE/KwuyOjzTPFQnKwNznbIrUrz14fnvgug=";
20+ };
21+
22+ nativeBuildInputs = [
23+ autoconf
24+ automake
25+ ];
26+
27+ buildInputs = [
28+ SDL
29+ SDL_mixer
30+ SDL_image
31+ libmikmod
32+ tinyxml
33+ ];
34+
35+ # Newer compilers introduced warnings
36+ postPatch = ''
37+ substituteInPlace configure.ac \
38+ --replace "-Werror" ""
39+ '';
40+
41+ preConfigure = ''
42+ ./bootstrap
43+ '';
44+
45+ installFlags = [
46+ # Default is $(out)/games
47+ "gamesdir=$(out)/bin"
48+ # We set the scoredir to $TMPDIR at install time.
49+ # Otherwise it will try to write in /var/games at install time
50+ "scoredir=$(TMPDIR)"
51+ ];
52+
53+ meta = with lib; {
54+ homepage = "https://linux.tlk.fr/games/TecnoballZ/";
55+ downloadPage = "https://linux.tlk.fr/games/TecnoballZ/download/";
56+ description = "A brick breaker game with a sophisticated system of weapons and bonuses";
57+ longDescription = ''
58+ A exciting Brick Breaker with 50 levels of game and 11 special levels,
59+ distributed on the 2 modes of game to give the player a sophisticated
60+ system of attack weapons with an enormous power of fire that can be build
61+ by gaining bonuses. Numerous decors, musics and sounds complete this great
62+ game. This game was ported from the Commodore Amiga.
63+ '';
64+ license = licenses.gpl3Plus;
65+ maintainers = with maintainers; [ fgaz ];
66+ platforms = platforms.all;
67+ };
68+}