3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/xmoto/default.nix

33 lines
839 B
Nix
Raw Normal View History

a :
let
s = import ./src-for-default.nix;
buildInputs = with a; [
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 */
2014-01-29 05:27:21 +00: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"];
meta = {
description = "X-Moto - obstacled race game";
maintainers = [
a.lib.maintainers.raskin
a.lib.maintainers.viric
];
platforms = a.lib.platforms.linux;
};
}