anchor.diff:  
     postInstall = with stdenv.lib; let
       runtime = makeLibraryPath [ SDL2 freetype openal systemd lua ];
  +    binaries= makeBinPath [ which mono gnome3.zenity ];
     in ''
       wrapProgram $out/lib/openra/launch-game.sh \
  -      --prefix PATH : "${mono}/bin" \
  -      --set PWD $out/lib/openra/ \
  +      --prefix PATH : "${binaries}" \
         --prefix LD_LIBRARY_PATH : "${runtime}"
   
       mkdir -p $out/bin
  -    echo -e "#!${stdenv.shell}\ncd $out/lib/openra && $out/lib/openra/launch-game.sh" > $out/bin/openra
  -    chmod +x $out/bin/openra
  +    makeWrapper $out/lib/openra/launch-game.sh $out/bin/openra --run "cd $out/lib/openra"
     '';
   }
  
positive.code: { stdenv, fetchurl, mono, makeWrapper, lua
  , SDL2, freetype, openal, systemd, pkgconfig,
    dotnetPackages, gnome3, curl, unzip
  }:
  
  let
    version = "20161019";
  in stdenv.mkDerivation rec {
    name = "openra-${version}";
  
    meta = with stdenv.lib; {
      description = "Real Time Strategy game engine recreating the C&C titles";
  
negative.code:     platforms   = platforms.linux;
    };
  
    src = fetchFromGitHub {
      owner = "OpenRA";
      repo = "OpenRA";
      rev = "release-${version}";
      sha256 = "0nlwpmiwhjs3qc2lxwnrh4p874v5y6mf4avi6bqgr1wvzc43n8wr";
  
      extraPostFetch = ''
        sed -i 's,curl,curl --insecure,g' $out/thirdparty/{fetch-thirdparty-deps,noget}.sh
        $out/thirdparty/fetch-thirdparty-deps.sh
      '';
    };
  
    dontStrip = true;
  
    buildInputs = (with dotnetPackages;
       [ NUnit3 NewtonsoftJson MonoNat FuzzyLogicLibrary SmartIrc4net SharpZipLib MaxMindGeoIP2 MaxMindDb SharpFont StyleCopMSBuild StyleCopPlusMSBuild RestSharp NUnitConsole OpenNAT ])
       ++ [ curl unzip lua gnome3.zenity ];
    nativeBuildInputs = [ curl unzip mono makeWrapper lua pkgconfig ];
  
    postPatch = ''
      mkdir Support
      sed -i \
        -e 's/^VERSION.*/VERSION = release-${version}/g' \
        -e '/GeoLite2-Country.mmdb.gz/d' \
        -e '/fetch-geoip-db.sh/d' \
        Makefile
      substituteInPlace thirdparty/configure-native-deps.sh --replace "locations=\"" "locations=\"${lua}/lib "
    '';
  
    preConfigure = ''
      makeFlags="prefix=$out"
      make version
    '';
  
    buildFlags = [ "DEBUG=false" "default" "man-page" ];
  