diff --git a/pkgs/games/ball-and-paddle/default.nix b/pkgs/games/ball-and-paddle/default.nix
index 9a49bbecb53..88ea75b5fdc 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 00000000000..6bf26b50a14
--- /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 ()
+