2017-02-28 14:50:10 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, scons, pkgconfig, SDL, mesa, zlib, smpeg
|
|
|
|
, SDL_image, libvorbis, expat, zip, lua5_1 }:
|
2011-03-27 21:18:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "battle-tanks-0.9.8083";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://sourceforge/btanks/btanks-0.9.8083.tar.bz2;
|
|
|
|
sha256 = "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz";
|
|
|
|
};
|
|
|
|
|
2017-02-28 14:50:10 +00:00
|
|
|
nativeBuildInputs = [ scons pkgconfig ];
|
|
|
|
buildInputs = [ SDL mesa zlib smpeg SDL_image libvorbis expat zip lua5_1 ];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${SDL_image}/include/SDL";
|
|
|
|
|
|
|
|
patches = [ (fetchpatch {
|
|
|
|
name = "gcc-4.7.patch";
|
|
|
|
url = "https://anonscm.debian.org/viewvc/pkg-games/packages/trunk/btanks/debian/patches/gcc-4.7.patch?revision=13641&view=co&pathrev=15758";
|
|
|
|
sha256 = "1dxlk1xh69gj10sqcsyckiakb8an3h41206wby4z44mpmvxc7pi4";
|
|
|
|
}) ];
|
2011-03-28 18:58:49 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
scons prefix=$out
|
|
|
|
'';
|
2011-03-27 21:18:05 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2011-03-28 18:58:49 +00:00
|
|
|
scons install
|
2011-03-27 21:18:05 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2017-08-02 21:50:51 +00:00
|
|
|
homepage = https://sourceforge.net/projects/btanks/;
|
2011-03-27 21:18:05 +00:00
|
|
|
description = "Fast 2d tank arcade game";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-03-27 21:18:05 +00:00
|
|
|
};
|
|
|
|
}
|