2008-11-30 18:15:29 +01:00
|
|
|
args :
|
|
|
|
let
|
|
|
|
lib = args.lib;
|
|
|
|
fetchurl = args.fetchurl;
|
|
|
|
|
2009-05-24 12:57:41 +02:00
|
|
|
version = lib.attrByPath ["version"] "0.5.1" args;
|
2008-11-30 18:15:29 +01:00
|
|
|
buildInputs = with args; [
|
|
|
|
chipmunk sqlite curl zlib bzip2 libjpeg libpng
|
|
|
|
freeglut mesa SDL SDL_mixer SDL_image SDL_net SDL_ttf
|
|
|
|
lua5 ode
|
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.tuxfamily.org/xmoto/xmoto/${version}/xmoto-${version}-src.tar.gz";
|
2009-04-26 19:00:10 +02:00
|
|
|
sha256 = "1clfw4kr34gda9ml427n8mdkhj0hhlldibiq1ay88glqqwvgj2j2";
|
2008-11-30 18:15:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
|
|
|
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
|
|
|
|
|
|
name = "xmoto-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "X-Moto - obstacled race game";
|
|
|
|
};
|
|
|
|
}
|