diff options
author | Pascal Wittmann <mail@pascal-wittmann.de> | 2015-05-02 23:13:26 +0200 |
---|---|---|
committer | Pascal Wittmann <mail@pascal-wittmann.de> | 2015-05-02 23:14:19 +0200 |
commit | ca03cf5c70797d7a4b78bd012e4e1193b85f13b8 (patch) | |
tree | 95da589c852301cdddb1a25f8e27884e35a7fb75 /pkgs/games | |
parent | 2fee606d860aa9b884c3883b99cbf21f61fae244 (diff) |
xmoto: refactor, remove patches and add myself to maintainers
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/xmoto/default.nix | 44 | ||||
-rw-r--r-- | pkgs/games/xmoto/src-for-default.nix | 9 | ||||
-rw-r--r-- | pkgs/games/xmoto/src-info-for-default.nix | 7 |
3 files changed, 19 insertions, 41 deletions
diff --git a/pkgs/games/xmoto/default.nix b/pkgs/games/xmoto/default.nix index 5695bb5b42943..7d4f2e53a941f 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; }; } diff --git a/pkgs/games/xmoto/src-for-default.nix b/pkgs/games/xmoto/src-for-default.nix deleted file mode 100644 index beb3f6af1645c..0000000000000 --- a/pkgs/games/xmoto/src-for-default.nix +++ /dev/null @@ -1,9 +0,0 @@ -rec { - version="0.5.11"; - name="xmoto-0.5.11"; - hash="1ci6r8zd0l7z28cy92ddf9dmqbdqwinz2y1cny34c61b57wsd155"; - url="http://download.tuxfamily.org/xmoto/xmoto/${version}/xmoto-${version}-src.tar.gz"; - advertisedUrl="http://download.tuxfamily.org/xmoto/xmoto/0.5.11/xmoto-0.5.11-src.tar.gz"; - - -} diff --git a/pkgs/games/xmoto/src-info-for-default.nix b/pkgs/games/xmoto/src-info-for-default.nix deleted file mode 100644 index 8d5d3f49822c6..0000000000000 --- a/pkgs/games/xmoto/src-info-for-default.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ - downloadPage = "http://xmoto.tuxfamily.org/"; - baseName = "xmoto"; - sourceRegexp = "xmoto-.*-src[.]tar[.].*"; - versionExtractorSedScript = ''$dashDelimitedVersion''; - versionReferenceCreator=''$(replaceAllVersionOccurences)''; -} |