anchor.diff: -{ lib, stdenv, fetchurl, nettools, java, polyml, z3, veriT, vampire, eprover-ho, rlwrap, makeDesktopItem }:
  +{ lib, stdenv, fetchurl, coreutils, nettools, java, polyml, z3, veriT, vampire, eprover-ho, rlwrap, makeDesktopItem }:
   # nettools needed for hostname
   
   stdenv.mkDerivation rec {
  
positive.code:       patchelf --set-rpath "${lib.concatStringsSep ":" [ "${java}/lib/openjdk/lib/server" "${stdenv.cc.cc.lib}/lib" ]}" $d/*.so
      done
    '');
  
    installPhase = ''
      mkdir -p $out/bin
  
negative.code:     for comp in contrib/jdk* contrib/polyml-* contrib/z3-* contrib/verit-* contrib/vampire-* contrib/e-*; do
        rm -rf $comp/x86*
      done
  
      substituteInPlace lib/Tools/env \
        --replace /usr/bin/env ${coreutils}/bin/env
  
      rm -r heaps
    '' + (if ! stdenv.isLinux then "" else ''
      arch=${if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64-linux" else "x86-linux"}
      for f in contrib/*/$arch/{bash_process,epclextract,nunchaku,SPASS,zipperposition}; do
  