btanks: fix building with lua 5.2
This commit is contained in:
parent
8ffb3cced1
commit
8b8f03682c
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, sconsPackages, pkgconfig, SDL, libGLU_combined, zlib, smpeg
|
{ stdenv, fetchurl, fetchpatch, sconsPackages, pkgconfig, SDL, libGL, zlib, smpeg
|
||||||
, SDL_image, libvorbis, expat, zip, lua5_1 }:
|
, SDL_image, libvorbis, expat, zip, lua }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "btanks";
|
pname = "btanks";
|
||||||
@ -11,16 +11,19 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ sconsPackages.scons_3_0_1 pkgconfig ];
|
nativeBuildInputs = [ sconsPackages.scons_3_0_1 pkgconfig ];
|
||||||
buildInputs = [ SDL libGLU_combined zlib smpeg SDL_image libvorbis expat zip lua5_1 ];
|
|
||||||
|
buildInputs = [ SDL libGL zlib smpeg SDL_image libvorbis expat zip lua ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-I${SDL_image}/include/SDL";
|
NIX_CFLAGS_COMPILE = "-I${SDL_image}/include/SDL";
|
||||||
|
|
||||||
prePatch = ''
|
|
||||||
substituteInPlace ./engine/SConscript --replace "lua5.1" "lua" \
|
|
||||||
--replace "lua5.0" "lua"
|
|
||||||
'';
|
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://aur.archlinux.org/cgit/aur.git/plain/lua52.patch?h=btanks";
|
||||||
|
sha256 = "0ip563kz6lhwiims5djrxq3mvb7jx9yzkpsqxxhbi9n6qzz7y2az";
|
||||||
|
name = "lua52.patch";
|
||||||
|
})
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "https://salsa.debian.org/games-team/btanks/raw/master/debian/patches/gcc-4.7.patch";
|
url = "https://salsa.debian.org/games-team/btanks/raw/master/debian/patches/gcc-4.7.patch";
|
||||||
sha256 = "1dxlk1xh69gj10sqcsyckiakb8an3h41206wby4z44mpmvxc7pi4";
|
sha256 = "1dxlk1xh69gj10sqcsyckiakb8an3h41206wby4z44mpmvxc7pi4";
|
||||||
@ -32,8 +35,8 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://sourceforge.net/projects/btanks/";
|
|
||||||
description = "Fast 2d tank arcade game";
|
description = "Fast 2d tank arcade game";
|
||||||
|
homepage = "https://sourceforge.net/projects/btanks/";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user