2021-01-15 04:31:39 +00:00
|
|
|
{ fetchurl, lib, stdenv, SDL, SDL_image, SDL_mixer, SDL_ttf, guile, gettext }:
|
2008-10-04 11:08:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-22 22:44:58 +01:00
|
|
|
pname = "ballandpaddle";
|
|
|
|
version = "0.8.1";
|
2008-10-04 11:08:59 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-22 22:44:58 +01:00
|
|
|
url = "mirror://gnu/ballandpaddle/ballandpaddle-${version}.tar.gz";
|
2009-07-16 22:38:30 +01:00
|
|
|
sha256 = "0zgpydad0mj7fbkippw3n9hlda6nac084dq5xfbsks9jn1xd30ny";
|
2008-10-04 11:08:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ SDL SDL_image SDL_mixer SDL_ttf guile gettext ];
|
|
|
|
|
2009-07-16 22:38:30 +01:00
|
|
|
patches = [ ./getenv-decl.patch ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2008-10-04 11:08:59 +01: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.
|
|
|
|
'';
|
|
|
|
|
2021-01-15 04:31:39 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2008-10-04 11:08:59 +01:00
|
|
|
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.gnu.org/software/ballandpaddle/";
|
2009-07-16 22:38:30 +01:00
|
|
|
|
2013-08-16 22:44:33 +01:00
|
|
|
maintainers = [ ];
|
2009-09-16 16:12:26 +01:00
|
|
|
|
2021-01-15 04:31:39 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2018-06-23 22:46:07 +01:00
|
|
|
|
2021-01-15 04:31:39 +00:00
|
|
|
hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin
|
2008-10-04 11:08:59 +01:00
|
|
|
};
|
|
|
|
}
|