summary refs log tree commit diff
path: root/pkgs/games/super-tux/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/super-tux/default.nix')
-rw-r--r--pkgs/games/super-tux/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/games/super-tux/default.nix b/pkgs/games/super-tux/default.nix
new file mode 100644
index 000000000000..60e9cc537bf0
--- /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";
+  };
+}