2021-07-09 16:47:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, SDL
|
|
|
|
, SDL_mixer
|
|
|
|
, libpng
|
|
|
|
}:
|
|
|
|
|
2024-02-19 15:35:03 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-07-09 16:47:35 +00:00
|
|
|
pname = "powermanga";
|
|
|
|
version = "0.93.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-02-19 15:35:03 +00:00
|
|
|
url = "https://linux.tlk.fr/games/Powermanga/download/powermanga-${finalAttrs.version}.tgz";
|
2021-07-09 16:47:35 +00:00
|
|
|
sha256 = "sha256-2nU/zoOQWm2z/Y6mXHDFfWYjYshsQp1saVRBcUT5Q+g=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL
|
|
|
|
SDL_mixer
|
|
|
|
libpng
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./bootstrap
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
# Default is $(out)/games
|
|
|
|
"gamesdir=$(out)/bin"
|
|
|
|
# We set the scoredir to $TMPDIR.
|
|
|
|
# Otherwise it will try to write in /var/games at install time
|
|
|
|
"scoredir=$(TMPDIR)"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://linux.tlk.fr/games/Powermanga/";
|
|
|
|
downloadPage = "https://linux.tlk.fr/games/Powermanga/download/";
|
|
|
|
description = "Arcade 2D shoot-em-up game";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "powermanga";
|
2021-07-09 16:47:35 +00:00
|
|
|
longDescription = ''
|
|
|
|
Powermanga is an arcade 2D shoot-em-up game with 41 levels and more than
|
|
|
|
200 sprites. It runs in 320x200 or 640x400 pixels, with Window mode or
|
|
|
|
full screen and support for 8, 15, 16, 24, and 32 bpp. As you go through
|
|
|
|
the levels, you will destroy enemy spaceships and bosses, collect gems to
|
|
|
|
power up your ship and get special powers, helpers and weapons.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
platforms = platforms.all;
|
2023-08-03 20:39:54 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2021-07-09 16:47:35 +00:00
|
|
|
};
|
2024-02-19 15:35:03 +00:00
|
|
|
})
|