2009-09-13 11:31:33 -07:00
|
|
|
a :
|
2008-11-30 09:15:29 -08:00
|
|
|
let
|
2009-09-13 11:31:33 -07:00
|
|
|
s = import ./src-for-default.nix;
|
|
|
|
buildInputs = with a; [
|
2008-11-30 09:15:29 -08:00
|
|
|
chipmunk sqlite curl zlib bzip2 libjpeg libpng
|
|
|
|
freeglut mesa SDL SDL_mixer SDL_image SDL_net SDL_ttf
|
2012-01-08 15:31:31 -08:00
|
|
|
lua5 ode libxdg_basedir libxml2
|
2008-11-30 09:15:29 -08:00
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
2009-09-13 11:31:33 -07:00
|
|
|
src = a.fetchUrlFromSrcInfo s;
|
2008-11-30 09:15:29 -08:00
|
|
|
|
2009-09-13 11:31:33 -07:00
|
|
|
inherit (s) name;
|
2008-11-30 09:15:29 -08:00
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
2009-09-13 11:31:33 -07:00
|
|
|
/* doConfigure should be removed if not needed */
|
2014-01-28 21:27:21 -08:00
|
|
|
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"];
|
2012-01-08 15:31:31 -08:00
|
|
|
|
2008-11-30 09:15:29 -08:00
|
|
|
meta = {
|
|
|
|
description = "X-Moto - obstacled race game";
|
2009-09-13 11:31:33 -07:00
|
|
|
maintainers = [
|
|
|
|
a.lib.maintainers.raskin
|
2009-12-23 10:37:44 -08:00
|
|
|
a.lib.maintainers.viric
|
2009-09-13 11:31:33 -07:00
|
|
|
];
|
2012-03-13 14:48:12 -07:00
|
|
|
platforms = a.lib.platforms.linux;
|
2008-11-30 09:15:29 -08:00
|
|
|
};
|
|
|
|
}
|