Add beret game
svn path=/nixpkgs/trunk/; revision=30954
This commit is contained in:
parent
25bf67915d
commit
0a93e74174
36
pkgs/games/beret/default.nix
Normal file
36
pkgs/games/beret/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ stdenv, fetchurl, SDL, SDL_image, SDL_ttf, SDL_mixer }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "beret-1.2.0";
|
||||
|
||||
buildInputs = [ SDL SDL_image SDL_ttf SDL_mixer ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-I${SDL}/include/SDL";
|
||||
|
||||
NIX_CFLAGS_LINK = "-lgcc_s";
|
||||
|
||||
patchPhase = ''
|
||||
sed -i 's@RESOURCE_PATH ""@RESOURCE_PATH "'$out'/share/"@' game.c
|
||||
'';
|
||||
|
||||
src = fetchurl {
|
||||
url = https://gitorious.org/beret/beret/archive-tarball/ae029777;
|
||||
name = "beret-1.2.0.tar.gz";
|
||||
sha256 = "0md00ipacvz5mq8q83h7xbzycnwympr06pc1n5c351swjvyw0ysx";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
install -v -m755 beret $out/bin
|
||||
ensureDir $out/share
|
||||
cp -av tahoma.ttf images music rooms sfx $out/share
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A 2D puzzle-platformer game about a scientist with telekinetic abilities";
|
||||
homepage = http://kiwisauce.com/beret/;
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
license = stdenv.lib.licenses.lgpl2;
|
||||
};
|
||||
}
|
||||
|
@ -5162,6 +5162,8 @@ let
|
||||
|
||||
bluez = callPackage ../os-specific/linux/bluez { };
|
||||
|
||||
beret = callPackage ../games/beret { };
|
||||
|
||||
bridge_utils = callPackage ../os-specific/linux/bridge-utils { };
|
||||
|
||||
checkpolicy = callPackage ../os-specific/linux/checkpolicy { };
|
||||
|
Loading…
Reference in New Issue
Block a user