about summary refs log tree commit diff
path: root/pkgs/games/super-tux
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2010-05-17 09:21:42 +0000
committerPeter Simons <simons@cryp.to>2010-05-17 09:21:42 +0000
commit71f164ac1e5d4baa69fbd770da2e813e0f387ffb (patch)
treed2367254c8ffc3ba3ffaa5d704487b60f446f97f /pkgs/games/super-tux
parent0dc24d9f049ad3baf652047c624acc7811308bf2 (diff)
Three Games and Perl Support for Irssi
    Here are four patches. Three of them add expressions for games. The
fourth, irssi-perl.patch, adds perl as an input for irssi, so that one
can run perl plugins in irssi. I didn't make the perl input optional,
but maybe it should be to keep the irssi expression light.

svn path=/nixpkgs/trunk/; revision=21813
Diffstat (limited to 'pkgs/games/super-tux')
-rw-r--r--pkgs/games/super-tux/default.nix28
-rw-r--r--pkgs/games/super-tux/g++4.patch13
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/games/super-tux/default.nix b/pkgs/games/super-tux/default.nix
new file mode 100644
index 0000000000000..60e9cc537bf05
--- /dev/null
+++ b/pkgs/games/super-tux/default.nix
@@ -0,0 +1,28 @@
+{ fetchurl, stdenv, SDL, SDL_image, SDL_mixer, curl, gettext, libogg, libvorbis, mesa, openal }:
+
+let
+
+    version = "0.1.3";
+
+in
+
+stdenv.mkDerivation {
+  name = "supertux-${version}";
+
+  src = fetchurl {
+    url = "http://download.berlios.de/supertux/supertux-${version}.tar.bz2";
+    sha256 = "15xdq99jy4hayr96jpqcp15rbr9cs5iamjirafajcrkpa61mi4h0";
+  };
+
+  buildInputs = [ SDL SDL_image SDL_mixer curl gettext libogg libvorbis mesa openal ];
+
+  patches = [ ./g++4.patch ];
+
+  meta = {
+    description = "SuperTux is a classic 2D jump'n run sidescroller game in a style similar to the original Super Mario games covered under the GPL.";
+
+    homepage = http://supertux.lethargik.org/index.html;
+
+    license = "GPLv2";
+  };
+}
diff --git a/pkgs/games/super-tux/g++4.patch b/pkgs/games/super-tux/g++4.patch
new file mode 100644
index 0000000000000..a7378c80a29bc
--- /dev/null
+++ b/pkgs/games/super-tux/g++4.patch
@@ -0,0 +1,13 @@
+diff --git a/src/menu.h b/src/menu.h
+index 3c67c45..7c7ab8e 100644
+--- a/src/menu.h
++++ b/src/menu.h
+@@ -207,7 +207,7 @@ public:
+
+   bool isToggled(int id);
+
+-  void Menu::get_controlfield_key_into_input(MenuItem *item);
++  void get_controlfield_key_into_input(MenuItem *item);
+
+   void draw   ();
+   void draw_item(int index, int menu_width, int menu_height);