diff options
Diffstat (limited to 'pkgs/games/jamp/default.nix')
-rw-r--r-- | pkgs/games/jamp/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/games/jamp/default.nix b/pkgs/games/jamp/default.nix new file mode 100644 index 000000000000..b551b9b6dfce --- /dev/null +++ b/pkgs/games/jamp/default.nix @@ -0,0 +1,33 @@ +a : +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}/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 = with a.lib.platforms; + linux ++ darwin; + }; +} |