2008-10-04 14:08:59 +04:00
|
|
|
{ fetchurl, stdenv, SDL, SDL_image, SDL_mixer, SDL_ttf, guile, gettext }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2009-07-17 01:38:30 +04:00
|
|
|
name = "ballandpaddle-0.8.1";
|
2008-10-04 14:08:59 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/ballandpaddle/${name}.tar.gz";
|
2009-07-17 01:38:30 +04:00
|
|
|
sha256 = "0zgpydad0mj7fbkippw3n9hlda6nac084dq5xfbsks9jn1xd30ny";
|
2008-10-04 14:08:59 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ SDL SDL_image SDL_mixer SDL_ttf guile gettext ];
|
|
|
|
|
2009-07-17 01:38:30 +04:00
|
|
|
patches = [ ./getenv-decl.patch ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2008-10-04 14:08:59 +04:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2008-10-04 14:08:59 +04:00
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/ballandpaddle/;
|
2009-07-17 01:38:30 +04:00
|
|
|
|
2013-08-17 01:44:33 +04:00
|
|
|
maintainers = [ ];
|
2009-09-16 19:12:26 +04:00
|
|
|
|
|
|
|
# The fancy libs aren't available on {Cyg,Dar}win.
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-10-04 14:08:59 +04:00
|
|
|
};
|
|
|
|
}
|