summary refs log tree commit diff
path: root/pkgs/games/xmoto/default.nix
diff options
context:
space:
mode:
authorPascal Wittmann <mail@pascal-wittmann.de>2015-05-02 23:13:26 +0200
committerPascal Wittmann <mail@pascal-wittmann.de>2015-05-02 23:14:19 +0200
commitca03cf5c70797d7a4b78bd012e4e1193b85f13b8 (patch)
tree95da589c852301cdddb1a25f8e27884e35a7fb75 /pkgs/games/xmoto/default.nix
parent2fee606d860aa9b884c3883b99cbf21f61fae244 (diff)
downloadnixlib-ca03cf5c70797d7a4b78bd012e4e1193b85f13b8.tar
nixlib-ca03cf5c70797d7a4b78bd012e4e1193b85f13b8.tar.gz
nixlib-ca03cf5c70797d7a4b78bd012e4e1193b85f13b8.tar.bz2
nixlib-ca03cf5c70797d7a4b78bd012e4e1193b85f13b8.tar.lz
nixlib-ca03cf5c70797d7a4b78bd012e4e1193b85f13b8.tar.xz
nixlib-ca03cf5c70797d7a4b78bd012e4e1193b85f13b8.tar.zst
nixlib-ca03cf5c70797d7a4b78bd012e4e1193b85f13b8.zip
xmoto: refactor, remove patches and add myself to maintainers
Diffstat (limited to 'pkgs/games/xmoto/default.nix')
-rw-r--r--pkgs/games/xmoto/default.nix44
1 files changed, 19 insertions, 25 deletions
diff --git a/pkgs/games/xmoto/default.nix b/pkgs/games/xmoto/default.nix
index 5695bb5b4294..7d4f2e53a941 100644
--- a/pkgs/games/xmoto/default.nix
+++ b/pkgs/games/xmoto/default.nix
@@ -1,32 +1,26 @@
-a :  
-let 
-  s = import ./src-for-default.nix;
-  buildInputs = with a; [
+{ stdenv, fetchurl, chipmunk, sqlite, curl, zlib, bzip2, libjpeg
+, libpng, freeglut, mesa, SDL, SDL_mixer, SDL_image, SDL_net
+, SDL_ttf, lua5, ode, libxdg_basedir, libxml2 }:
+
+stdenv.mkDerivation rec {
+  name = "xmoto-${version}";
+  version = "0.5.11";
+
+  src = fetchurl {
+    url = "http://download.tuxfamily.org/xmoto/xmoto/${version}/xmoto-${version}-src.tar.gz";
+    sha256 = "1ci6r8zd0l7z28cy92ddf9dmqbdqwinz2y1cny34c61b57wsd155";
+  };
+
+  buildInputs = [
     chipmunk sqlite curl zlib bzip2 libjpeg libpng
     freeglut mesa SDL SDL_mixer SDL_image SDL_net SDL_ttf 
     lua5 ode libxdg_basedir libxml2
   ];
-in
-rec {
-  src = a.fetchUrlFromSrcInfo s;
-
-  inherit (s) name;
-  inherit buildInputs;
-  configureFlags = [];
-
-  /* doConfigure should be removed if not needed */
-  phaseNames = [ "patchIncludes" "doConfigure" "doMakeInstall"];
-  patchIncludes = a.fullDepEntry ''
-    sed -e '1i#include <sys/types.h>' -i src/helpers//System.cpp
-    sed -e '1i#include <unistd.h>' -i src/helpers//System.cpp
-  '' ["doUnpack" "minInit"];
 
-  meta = {
-    description = "X-Moto - obstacled race game";
-    maintainers = [
-      a.lib.maintainers.raskin
-      a.lib.maintainers.viric
-    ];
-    platforms = a.lib.platforms.linux;
+  meta = with stdenv.lib; {
+    description = "Obstacled race game";
+    homepage = http://xmoto.tuxfamily.org;
+    maintainers = with maintainers; [ raskin viric pSub ];
+    platforms = platforms.linux;
   };
 }