anchor.diff: -{ stdenv, lib, fetchurl, perl, unzip, zip, which, pkgconfig
  -, qtbase, qtscript, SDL2, libtheora, openal, glew, physfs, fribidi, libXrandr
  +{ stdenv, mkDerivation, fetchurl, autoconf, automake
  +, perl, unzip, zip, which, pkgconfig, qtbase, qtscript
  +, SDL2, libtheora, openal, glew, physfs, fribidi, libXrandr
   , withVideos ? false
   }:
   
  
positive.code:   };
  in
  
  stdenv.mkDerivation rec {
    version = "3.2.3";
    name = "${pname}-${version}";
  
    src = fetchurl {
      url = "mirror://sourceforge/${pname}/releases/${version}/${name}.tar.xz";
      sha256 = "10kmpr4cby95zwqsl1zwx95d9achli6khq7flv6xmrq30a39xazw";
    };
  
    buildInputs = [ qtbase qtscript SDL2 libtheora openal glew physfs fribidi libXrandr ];
    nativeBuildInputs = [ perl zip unzip pkgconfig ];
  
    postPatch = ''
      substituteInPlace lib/exceptionhandler/dumpinfo.cpp \
  
negative.code: 
    enableParallelBuilding = true;
  
    postInstall = stdenv.lib.optionalString withVideos
      "cp ${sequences_src} $out/share/warzone2100/sequences.wz";
  
    meta = with stdenv.lib; {
      description = "A free RTS game, originally developed by Pumpkin Studios";
  