2019-01-06 19:29:52 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, sconsPackages, pkgconfig, SDL, libGLU_combined, zlib, smpeg
|
2017-02-28 14:50:10 +00:00
|
|
|
, SDL_image, libvorbis, expat, zip, lua5_1 }:
|
2011-03-27 22:18:05 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "battle-tanks-0.9.8083";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://sourceforge/btanks/btanks-0.9.8083.tar.bz2;
|
|
|
|
sha256 = "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz";
|
|
|
|
};
|
|
|
|
|
2019-01-06 19:29:52 +00:00
|
|
|
nativeBuildInputs = [ sconsPackages.scons_3_0_1 pkgconfig ];
|
2018-02-24 13:12:44 +00:00
|
|
|
buildInputs = [ SDL libGLU_combined zlib smpeg SDL_image libvorbis expat zip lua5_1 ];
|
2017-02-28 14:50:10 +00:00
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${SDL_image}/include/SDL";
|
|
|
|
|
2018-11-12 02:52:07 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/b/btanks/0.9.8083-7/debian/patches/gcc-4.7.patch";
|
|
|
|
sha256 = "1dxlk1xh69gj10sqcsyckiakb8an3h41206wby4z44mpmvxc7pi4";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/b/btanks/0.9.8083-7/debian/patches/pow10f.patch";
|
|
|
|
sha256 = "1h45790v2dpdbccfn6lwfgl8782q54i14cz9gpipkaghcka4y0g9";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 22:50:51 +01:00
|
|
|
homepage = https://sourceforge.net/projects/btanks/;
|
2011-03-27 22:18:05 +01:00
|
|
|
description = "Fast 2d tank arcade game";
|
2018-11-12 02:52:07 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2011-03-27 22:18:05 +01:00
|
|
|
};
|
|
|
|
}
|