summary refs log tree commit diff
path: root/pkgs/games/ball-and-paddle/default.nix
blob: 4a7eb9376da7d1538bfa9d362a2cf8b3da9c3e95 (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
{ fetchurl, stdenv, SDL, SDL_image, SDL_mixer, SDL_ttf, guile, gettext }:

stdenv.mkDerivation rec {
  name = "ballandpaddle-0.8.1";

  src = fetchurl {
    url = "mirror://gnu/ballandpaddle/${name}.tar.gz";
    sha256 = "0zgpydad0mj7fbkippw3n9hlda6nac084dq5xfbsks9jn1xd30ny";
  };

  buildInputs = [ SDL SDL_image SDL_mixer SDL_ttf guile gettext ];

  patches = [ ./getenv-decl.patch ];

  preConfigure = ''
    sed -i "Makefile.in" \
        -e "s|desktopdir *=.*$|desktopdir = $out/share/applications|g ;
            s|pixmapsdir *=.*$|pixmapsdir = $out/share/pixmaps|g"
  '';

  meta = {
    description = "GNU Ball and Paddle, an old-fashioned ball and paddle game";

    longDescription = ''
      GNU Ball and Paddle is an old-fashioned ball and paddle game
      with a set amount of blocks to destroy on each level, while
      moving a paddle left and right at the bottom of the
      screen.  Various powerups may make different things occur.

      It now uses GNU Guile for extension and the levels are written
      with Guile.  Follow the example level sets and the documentation.
    '';

    license = stdenv.lib.licenses.gpl3Plus;

    homepage = http://www.gnu.org/software/ballandpaddle/;

    maintainers = [ ];

    # The fancy libs aren't available on {Cyg,Dar}win.
    platforms = stdenv.lib.platforms.linux;
  };
}