2015-09-15 06:27:19 +02:00
|
|
|
a @ { mesa, SDL, SDL_image, SDL_mixer, ... } :
|
|
|
|
let
|
2009-11-19 13:10:23 +01:00
|
|
|
s = import ./src-for-default.nix;
|
|
|
|
buildInputs = with a; [
|
|
|
|
mesa SDL SDL_mixer SDL_image
|
|
|
|
|
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchUrlFromSrcInfo s;
|
|
|
|
|
|
|
|
inherit (s) name;
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
preBuild = a.fullDepEntry (''
|
|
|
|
sed -e "s@/usr/games@$out/bin@g" -i Makefile
|
|
|
|
sed -e "s@/usr/@$out/@g" -i Makefile
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.SDL}/include/SDL"
|
|
|
|
'') ["minInit" "addInputs" "doUnpack"];
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["preBuild" "doMakeInstall"];
|
2015-09-15 06:27:19 +02:00
|
|
|
|
2009-11-19 13:10:23 +01:00
|
|
|
meta = {
|
|
|
|
description = "A physics-based game";
|
2010-02-05 15:13:25 +01:00
|
|
|
maintainers = [ a.lib.maintainers.raskin ];
|
|
|
|
platforms = a.lib.platforms.linux;
|
2009-11-19 13:10:23 +01:00
|
|
|
};
|
|
|
|
}
|