From be84b08a8f4e142523d0350c3611528b279d04ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 4 Oct 2008 10:08:59 +0000 Subject: [PATCH] Add GNU Ball and Paddle, the ultimate game. svn path=/nixpkgs/trunk/; revision=12938 --- pkgs/games/ball-and-paddle/default.nix | 36 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/games/ball-and-paddle/default.nix diff --git a/pkgs/games/ball-and-paddle/default.nix b/pkgs/games/ball-and-paddle/default.nix new file mode 100644 index 000000000000..9a49bbecb538 --- /dev/null +++ b/pkgs/games/ball-and-paddle/default.nix @@ -0,0 +1,36 @@ +{ fetchurl, stdenv, SDL, SDL_image, SDL_mixer, SDL_ttf, guile, gettext }: + +stdenv.mkDerivation rec { + name = "ballandpaddle-0.8.0"; + + src = fetchurl { + url = "mirror://gnu/ballandpaddle/${name}.tar.gz"; + sha256 = "0m81vvwibisaxrqmzlq6k8r5qxv4hpsq2hi6xjmfm1ffzaayplsh"; + }; + + buildInputs = [ SDL SDL_image SDL_mixer SDL_ttf guile gettext ]; + + patchPhase = '' + 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 = "GPLv3+"; + + homepage = http://www.gnu.org/software/ballandpaddle/; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f4d1903b726e..0f415e0c9efc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7139,6 +7139,10 @@ let ### GAMES + ballAndPaddle = import ../games/ball-and-paddle { + inherit fetchurl stdenv SDL SDL_image SDL_mixer SDL_ttf guile gettext; + }; + construoBase = composedArgsAndFun (selectVersion ../games/construo "0.2.2") { inherit stdenv fetchurl builderDefs zlib;