anchor.diff: -{ stdenv, fetchurl, fetchpatch, sconsPackages, pkgconfig, SDL, libGLU_combined, zlib, smpeg
  -, SDL_image, libvorbis, expat, zip, lua5_1 }:
  +{ stdenv, fetchurl, fetchpatch, sconsPackages, pkgconfig, SDL, libGL, zlib, smpeg
  +, SDL_image, libvorbis, expat, zip, lua }:
   
   stdenv.mkDerivation rec {
     pname = "btanks";
  
positive.code:   };
  
    nativeBuildInputs = [ sconsPackages.scons_3_0_1 pkgconfig ];
    buildInputs = [ SDL libGLU_combined zlib smpeg SDL_image libvorbis expat zip lua5_1 ];
  
    NIX_CFLAGS_COMPILE = "-I${SDL_image}/include/SDL";
  
    prePatch = ''
      substituteInPlace ./engine/SConscript --replace "lua5.1" "lua" \
            --replace "lua5.0" "lua"
    '';
  
    patches = [
      (fetchpatch {
        url = "https://salsa.debian.org/games-team/btanks/raw/master/debian/patches/gcc-4.7.patch";
        sha256 = "1dxlk1xh69gj10sqcsyckiakb8an3h41206wby4z44mpmvxc7pi4";
  
negative.code:   ];
  
    meta = with stdenv.lib; {
      description = "Fast 2d tank arcade game";
      homepage = "https://sourceforge.net/projects/btanks/";
      license = licenses.gpl2Plus;
      platforms = platforms.linux;
    };
  