···11+{ lib
22+, stdenv
33+, fetchurl
44+, autoconf
55+, automake
66+, SDL
77+, SDL_mixer
88+, libpng
99+}:
1010+1111+stdenv.mkDerivation rec {
1212+ pname = "powermanga";
1313+ version = "0.93.1";
1414+1515+ src = fetchurl {
1616+ url = "https://linux.tlk.fr/games/Powermanga/download/powermanga-${version}.tgz";
1717+ sha256 = "sha256-2nU/zoOQWm2z/Y6mXHDFfWYjYshsQp1saVRBcUT5Q+g=";
1818+ };
1919+2020+ nativeBuildInputs = [
2121+ autoconf
2222+ automake
2323+ ];
2424+2525+ buildInputs = [
2626+ SDL
2727+ SDL_mixer
2828+ libpng
2929+ ];
3030+3131+ preConfigure = ''
3232+ ./bootstrap
3333+ '';
3434+3535+ installFlags = [
3636+ # Default is $(out)/games
3737+ "gamesdir=$(out)/bin"
3838+ # We set the scoredir to $TMPDIR.
3939+ # Otherwise it will try to write in /var/games at install time
4040+ "scoredir=$(TMPDIR)"
4141+ ];
4242+4343+ meta = with lib; {
4444+ homepage = "https://linux.tlk.fr/games/Powermanga/";
4545+ downloadPage = "https://linux.tlk.fr/games/Powermanga/download/";
4646+ description = "An arcade 2D shoot-em-up game";
4747+ longDescription = ''
4848+ Powermanga is an arcade 2D shoot-em-up game with 41 levels and more than
4949+ 200 sprites. It runs in 320x200 or 640x400 pixels, with Window mode or
5050+ full screen and support for 8, 15, 16, 24, and 32 bpp. As you go through
5151+ the levels, you will destroy enemy spaceships and bosses, collect gems to
5252+ power up your ship and get special powers, helpers and weapons.
5353+ '';
5454+ license = licenses.gpl3Plus;
5555+ maintainers = with maintainers; [ fgaz ];
5656+ platforms = platforms.all;
5757+ };
5858+}
+68
pkgs/games/tecnoballz/default.nix
···11+{ lib
22+, stdenv
33+, fetchurl
44+, autoconf
55+, automake
66+, SDL
77+, SDL_mixer
88+, SDL_image
99+, libmikmod
1010+, tinyxml
1111+}:
1212+1313+stdenv.mkDerivation rec {
1414+ pname = "tecnoballz";
1515+ version = "0.93.1";
1616+1717+ src = fetchurl {
1818+ url = "https://linux.tlk.fr/games/TecnoballZ/download/tecnoballz-${version}.tgz";
1919+ sha256 = "sha256-WRW76e+/eXE/KwuyOjzTPFQnKwNznbIrUrz14fnvgug=";
2020+ };
2121+2222+ nativeBuildInputs = [
2323+ autoconf
2424+ automake
2525+ ];
2626+2727+ buildInputs = [
2828+ SDL
2929+ SDL_mixer
3030+ SDL_image
3131+ libmikmod
3232+ tinyxml
3333+ ];
3434+3535+ # Newer compilers introduced warnings
3636+ postPatch = ''
3737+ substituteInPlace configure.ac \
3838+ --replace "-Werror" ""
3939+ '';
4040+4141+ preConfigure = ''
4242+ ./bootstrap
4343+ '';
4444+4545+ installFlags = [
4646+ # Default is $(out)/games
4747+ "gamesdir=$(out)/bin"
4848+ # We set the scoredir to $TMPDIR at install time.
4949+ # Otherwise it will try to write in /var/games at install time
5050+ "scoredir=$(TMPDIR)"
5151+ ];
5252+5353+ meta = with lib; {
5454+ homepage = "https://linux.tlk.fr/games/TecnoballZ/";
5555+ downloadPage = "https://linux.tlk.fr/games/TecnoballZ/download/";
5656+ description = "A brick breaker game with a sophisticated system of weapons and bonuses";
5757+ longDescription = ''
5858+ A exciting Brick Breaker with 50 levels of game and 11 special levels,
5959+ distributed on the 2 modes of game to give the player a sophisticated
6060+ system of attack weapons with an enormous power of fire that can be build
6161+ by gaining bonuses. Numerous decors, musics and sounds complete this great
6262+ game. This game was ported from the Commodore Amiga.
6363+ '';
6464+ license = licenses.gpl3Plus;
6565+ maintainers = with maintainers; [ fgaz ];
6666+ platforms = platforms.all;
6767+ };
6868+}