summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Gazzetta <fgaz@fgaz.me>2021-07-09 18:47:35 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2021-07-09 23:03:53 +0000
commitf1a6b028cdb20cff2a947672a322880bb7ec16cc (patch)
tree4376f19e1ee7a14bd6c9697f10b42ac18dae0ff4
parenttecnoballz: init at 0.93.1 (diff)
downloadnixpkgs-origin/backport-129770-to-release-21.05.tar.gz
powermanga: init at 0.93.1origin/backport-129770-to-release-21.05
(cherry picked from commit 0851d84fed3d63481f4f8554003bec5b30ba8673)
-rw-r--r--pkgs/games/powermanga/default.nix58
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/games/powermanga/default.nix b/pkgs/games/powermanga/default.nix
new file mode 100644
index 000000000000..ce3f5b9bf557
--- /dev/null
+++ b/pkgs/games/powermanga/default.nix
@@ -0,0 +1,58 @@
+{ lib
+, stdenv
+, fetchurl
+, autoconf
+, automake
+, SDL
+, SDL_mixer
+, libpng
+}:
+
+stdenv.mkDerivation rec {
+ pname = "powermanga";
+ version = "0.93.1";
+
+ src = fetchurl {
+ url = "https://linux.tlk.fr/games/Powermanga/download/powermanga-${version}.tgz";
+ 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 = "An arcade 2D shoot-em-up game";
+ 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;
+ };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 2c61c44c526d..7bc132b113bf 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -28541,6 +28541,8 @@ in
pokerth-server = libsForQt5.callPackage ../games/pokerth { target = "server"; };
+ powermanga = callPackage ../games/powermanga { };
+
prboom = callPackage ../games/prboom { };
pysolfc = python3Packages.callPackage ../games/pysolfc { };