Adding the game Bits&Bots
svn path=/nixpkgs/trunk/; revision=32227
This commit is contained in:
parent
af2f845060
commit
c2e5c08d72
36
pkgs/games/bitsnbots/default.nix
Normal file
36
pkgs/games/bitsnbots/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ stdenv, fetchurl, SDL, lua, mesa }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "bitsnbots-20111230";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://moikmellah.org/downloads/bitsnbots/bitsnbots.source.tgz;
|
||||
sha256 = "1iiclm6bfpp2p6d692hpnw25xyr48ki1xkcxa7fvh5b7m1519gsp";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
sed -i '/^INCLUDE/d' Makefile.linux
|
||||
'';
|
||||
|
||||
makefile = "Makefile.linux";
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-I${SDL}/include/SDL";
|
||||
|
||||
NIX_LDFLAGS = "-lGL";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/${name}
|
||||
cp -R bitsnbots resource scripts README $out/share/${name}
|
||||
mkdir -p $out/bin
|
||||
ln -s $out/share/${name}/bitsnbots $out/bin
|
||||
'';
|
||||
|
||||
buildInputs = [ SDL lua mesa ];
|
||||
|
||||
meta = {
|
||||
description = "Simple puzzle game with moving robots";
|
||||
homepage = "http://moikmellah.org/blog/?page_id=19";
|
||||
license = "GPLv3+";
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
};
|
||||
}
|
@ -7881,6 +7881,10 @@ let
|
||||
guile = guile_1_8;
|
||||
};
|
||||
|
||||
bitsnbots = callPackage ../games/bitsnbots {
|
||||
lua = lua5;
|
||||
};
|
||||
|
||||
blackshades = callPackage ../games/blackshades { };
|
||||
|
||||
blackshadeselite = callPackage ../games/blackshadeselite { };
|
||||
|
Loading…
Reference in New Issue
Block a user