2019-08-19 15:24:08 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, sconsPackages, pkgconfig, SDL, libGL, zlib, smpeg
|
|
|
|
, SDL_image, libvorbis, expat, zip, lua }:
|
2011-03-27 21:18:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-18 21:21:32 +00:00
|
|
|
pname = "btanks";
|
|
|
|
version = "0.9.8083";
|
2011-03-27 21:18:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-18 21:21:32 +00:00
|
|
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
|
2011-03-27 21:18:05 +00:00
|
|
|
sha256 = "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz";
|
|
|
|
};
|
|
|
|
|
2019-01-06 19:29:52 +00:00
|
|
|
nativeBuildInputs = [ sconsPackages.scons_3_0_1 pkgconfig ];
|
2017-02-28 14:50:10 +00:00
|
|
|
|
2019-08-19 15:24:08 +00:00
|
|
|
buildInputs = [ SDL libGL zlib smpeg SDL_image libvorbis expat zip lua ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2017-02-28 14:50:10 +00:00
|
|
|
|
2019-08-19 15:24:08 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${SDL_image}/include/SDL";
|
2019-08-18 21:21:32 +00:00
|
|
|
|
2018-11-12 02:52:07 +00:00
|
|
|
patches = [
|
2019-08-19 15:24:08 +00:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://aur.archlinux.org/cgit/aur.git/plain/lua52.patch?h=btanks";
|
|
|
|
sha256 = "0ip563kz6lhwiims5djrxq3mvb7jx9yzkpsqxxhbi9n6qzz7y2az";
|
|
|
|
name = "lua52.patch";
|
|
|
|
})
|
2018-11-12 02:52:07 +00:00
|
|
|
(fetchpatch {
|
2019-08-18 21:21:32 +00:00
|
|
|
url = "https://salsa.debian.org/games-team/btanks/raw/master/debian/patches/gcc-4.7.patch";
|
2018-11-12 02:52:07 +00:00
|
|
|
sha256 = "1dxlk1xh69gj10sqcsyckiakb8an3h41206wby4z44mpmvxc7pi4";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
2019-08-18 21:21:32 +00:00
|
|
|
url = "https://salsa.debian.org/games-team/btanks/raw/master/debian/patches/pow10f.patch";
|
2018-11-12 02:52:07 +00:00
|
|
|
sha256 = "1h45790v2dpdbccfn6lwfgl8782q54i14cz9gpipkaghcka4y0g9";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2011-03-27 21:18:05 +00:00
|
|
|
description = "Fast 2d tank arcade game";
|
2019-08-19 15:24:08 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/btanks/";
|
2018-11-12 02:52:07 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2019-08-18 21:21:32 +00:00
|
|
|
platforms = platforms.linux;
|
2011-03-27 21:18:05 +00:00
|
|
|
};
|
|
|
|
}
|