xmoto: refactor, remove patches and add myself to maintainers
This commit is contained in:
parent
2fee606d86
commit
ca03cf5c70
|
@ -1,32 +1,26 @@
|
||||||
a :
|
{ stdenv, fetchurl, chipmunk, sqlite, curl, zlib, bzip2, libjpeg
|
||||||
let
|
, libpng, freeglut, mesa, SDL, SDL_mixer, SDL_image, SDL_net
|
||||||
s = import ./src-for-default.nix;
|
, SDL_ttf, lua5, ode, libxdg_basedir, libxml2 }:
|
||||||
buildInputs = with a; [
|
|
||||||
|
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
|
chipmunk sqlite curl zlib bzip2 libjpeg libpng
|
||||||
freeglut mesa SDL SDL_mixer SDL_image SDL_net SDL_ttf
|
freeglut mesa SDL SDL_mixer SDL_image SDL_net SDL_ttf
|
||||||
lua5 ode libxdg_basedir libxml2
|
lua5 ode libxdg_basedir libxml2
|
||||||
];
|
];
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchUrlFromSrcInfo s;
|
|
||||||
|
|
||||||
inherit (s) name;
|
meta = with stdenv.lib; {
|
||||||
inherit buildInputs;
|
description = "Obstacled race game";
|
||||||
configureFlags = [];
|
homepage = http://xmoto.tuxfamily.org;
|
||||||
|
maintainers = with maintainers; [ raskin viric pSub ];
|
||||||
/* doConfigure should be removed if not needed */
|
platforms = platforms.linux;
|
||||||
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;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
downloadPage = "http://xmoto.tuxfamily.org/";
|
|
||||||
baseName = "xmoto";
|
|
||||||
sourceRegexp = "xmoto-.*-src[.]tar[.].*";
|
|
||||||
versionExtractorSedScript = ''$dashDelimitedVersion'';
|
|
||||||
versionReferenceCreator=''$(replaceAllVersionOccurences)'';
|
|
||||||
}
|
|
|
@ -9851,11 +9851,7 @@ let
|
||||||
|
|
||||||
xf86_video_nouveau = xorg.xf86videonouveau;
|
xf86_video_nouveau = xorg.xf86videonouveau;
|
||||||
|
|
||||||
xmoto = builderDefsPackage (import ../games/xmoto) {
|
xmoto = callPackage ../games/xmoto { };
|
||||||
inherit chipmunk sqlite curl zlib bzip2 libjpeg libpng
|
|
||||||
freeglut mesa SDL SDL_mixer SDL_image SDL_net SDL_ttf
|
|
||||||
lua5 ode libxdg_basedir libxml2;
|
|
||||||
};
|
|
||||||
|
|
||||||
xorg_sys_opengl = callPackage ../os-specific/linux/opengl/xorg-sys { };
|
xorg_sys_opengl = callPackage ../os-specific/linux/opengl/xorg-sys { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue