anchor.diff:  
     enableParallelBuilding = true;
   
  -  postInstall = lib.optionalString withVideos "cp ${sequences_src} $out/share/warzone2100/sequences.wz";
  +  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";
  
positive.code: { stdenv, lib, fetchurl, perl, unzip, zip, which, pkgconfig
  , qtbase, qtscript, SDL2, libtheora, openal, glew, physfs, fribidi, libXrandr
  , withVideos ? false
  }:
  
  
negative.code:   };
  in
  
  mkDerivation rec {
    inherit pname;
    version  = "3.3.0";
  
    src = fetchurl {
      url = "mirror://sourceforge/${pname}/releases/${version}/${pname}-${version}_src.tar.xz";
      sha256 = "1s0n67rh32g0bgq72p4qzkcqjlw58gc70r4r6gl9k90pil9chj6c";
    };
  
    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 \
  