3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/jamp/default.nix
2015-10-13 20:18:56 +02:00

31 lines
751 B
Nix

a @ { mesa, SDL, SDL_image, SDL_mixer, ... } :
let
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.dev}/include/SDL"
'') ["minInit" "addInputs" "doUnpack"];
/* doConfigure should be removed if not needed */
phaseNames = ["preBuild" "doMakeInstall"];
meta = {
description = "A physics-based game";
maintainers = [ a.lib.maintainers.raskin ];
platforms = a.lib.platforms.linux;
};
}