mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
Adding JAMP game..
svn path=/nixpkgs/trunk/; revision=18454
This commit is contained in:
parent
4dca2c8b12
commit
d9aae7cb65
33
pkgs/games/jamp/default.nix
Normal file
33
pkgs/games/jamp/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
9
pkgs/games/jamp/src-for-default.nix
Normal file
9
pkgs/games/jamp/src-for-default.nix
Normal file
@ -0,0 +1,9 @@
|
||||
rec {
|
||||
version="1.0.2";
|
||||
name="jamp-1.0.2";
|
||||
hash="13cjggyx63wmlcvpyllmd7aknfd4vzhxnwm030mas7z3h6wcsmk7";
|
||||
url="http://perre.noud.ch/jamp/download.php?file=jamp-${version}.tar.gz";
|
||||
advertisedUrl="http://perre.noud.ch/jamp/download.php?file=jamp-1.0.2.tar.gz";
|
||||
|
||||
|
||||
}
|
4
pkgs/games/jamp/src-info-for-default.nix
Normal file
4
pkgs/games/jamp/src-info-for-default.nix
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
downloadPage = "http://perre.noud.ch/jamp/";
|
||||
baseName = "jamp";
|
||||
}
|
@ -3685,6 +3685,10 @@ let
|
||||
inherit stdenv fetchurl gettext python;
|
||||
};
|
||||
|
||||
jamp = builderDefsPackage ../games/jamp {
|
||||
inherit mesa SDL SDL_image SDL_mixer;
|
||||
};
|
||||
|
||||
jasper = import ../development/libraries/jasper {
|
||||
inherit fetchurl stdenv unzip xlibs libjpeg;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user