about summary refs log tree commit diff
path: root/pkgs/games/powermanga/default.nix
blob: 25a1df5211a310fbfdcb20234d82be5b02e8a4a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{ 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;
    broken = stdenv.isDarwin;
  };
}