From 179c9415db68406d01efa92a6cc6cb7b63136891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 16 Jul 2009 21:38:30 +0000 Subject: [PATCH] GNU Ball and Paddle 0.8.1. svn path=/nixpkgs/trunk/; revision=16410 --- pkgs/games/ball-and-paddle/default.nix | 10 +++++++--- pkgs/games/ball-and-paddle/getenv-decl.patch | 13 +++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 pkgs/games/ball-and-paddle/getenv-decl.patch diff --git a/pkgs/games/ball-and-paddle/default.nix b/pkgs/games/ball-and-paddle/default.nix index 9a49bbecb538..88ea75b5fdc5 100644 --- a/pkgs/games/ball-and-paddle/default.nix +++ b/pkgs/games/ball-and-paddle/default.nix @@ -1,16 +1,18 @@ { fetchurl, stdenv, SDL, SDL_image, SDL_mixer, SDL_ttf, guile, gettext }: stdenv.mkDerivation rec { - name = "ballandpaddle-0.8.0"; + name = "ballandpaddle-0.8.1"; src = fetchurl { url = "mirror://gnu/ballandpaddle/${name}.tar.gz"; - sha256 = "0m81vvwibisaxrqmzlq6k8r5qxv4hpsq2hi6xjmfm1ffzaayplsh"; + sha256 = "0zgpydad0mj7fbkippw3n9hlda6nac084dq5xfbsks9jn1xd30ny"; }; buildInputs = [ SDL SDL_image SDL_mixer SDL_ttf guile gettext ]; - patchPhase = '' + patches = [ ./getenv-decl.patch ]; + + preConfigure = '' sed -i "Makefile.in" \ -e "s|desktopdir *=.*$|desktopdir = $out/share/applications|g ; s|pixmapsdir *=.*$|pixmapsdir = $out/share/pixmaps|g" @@ -32,5 +34,7 @@ stdenv.mkDerivation rec { license = "GPLv3+"; homepage = http://www.gnu.org/software/ballandpaddle/; + + maintainers = [ stdenv.lib.maintainers.ludo ]; }; } diff --git a/pkgs/games/ball-and-paddle/getenv-decl.patch b/pkgs/games/ball-and-paddle/getenv-decl.patch new file mode 100644 index 000000000000..6bf26b50a142 --- /dev/null +++ b/pkgs/games/ball-and-paddle/getenv-decl.patch @@ -0,0 +1,13 @@ +Make the getenv(3) declaration visible. + +--- ballandpaddle-0.8.1/src/settingsmanager.cpp 2009-07-08 02:13:16.000000000 +0200 ++++ ballandpaddle-0.8.1/src/settingsmanager.cpp 2009-07-16 23:30:28.000000000 +0200 +@@ -17,6 +17,7 @@ + * along with this program. If not, see . + **/ + ++#include + #include "settingsmanager.h" + + SettingsManager::SettingsManager () +