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: 
    enableParallelBuilding = true;
  
    postInstall = 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";
  
negative.code:   };
  in
  
  mkDerivation rec {
    name = "${pname}-${main}_${sub}";
    main = "3.3.0";
    sub  = "beta1";
  
    src = fetchurl {
      url = "mirror://sourceforge/${pname}/releases/${main}/${name}.tar.xz";
      sha256 = "1jnc334ps88v14cbkp499kk7ini7mbrs1xsz7d04y0w238q407zn";
    };
  
    buildInputs = [
      qtbase qtscript SDL2 libtheora openal
      glew physfs fribidi libXrandr
    ];
    nativeBuildInputs = [
      perl zip unzip pkgconfig autoconf automake
    ];
  
    preConfigure = "./autogen.sh";
  
    postPatch = ''
      substituteInPlace lib/exceptionhandler/dumpinfo.cpp \
  