anchor.diff:  
       mkdir -p $dev
       cp -r include $dev
  -  '' + lib.optionalString kdeIntegration ''
  -      for prog in $out/bin/*
  -      do
  -        wrapQtApp $prog
  -      done
  +  '' + optionalString kdeIntegration ''
  +    for prog in $out/bin/*; do
  +      wrapQtApp $prog
  +    done
     '';
   
     dontWrapQtApps = true;
   
     configureFlags = [
       (if withHelp then "" else "--without-help")
  -    "--with-boost=${boost.dev}"
  -    "--with-boost-libdir=${boost.out}/lib"
  +    "--with-boost=${getDev boost}"
  +    "--with-boost-libdir=${getLib boost}/lib"
       "--with-beanshell-jar=${bsh}"
       "--with-vendor=NixOS"
       "--disable-report-builder"
  
positive.code: 
    ### QT/KDE
    #
    # We have to resort to the ugly patching of configure.ac as it assumes that
    # the first directory that contains headers and libraries during the check
    # contains all the relevant headers/libs which doesn't work with both as they
    # are in multiple directories due to each having their own derivation.
    postPatch = let
      inc = e: path:
        "${lib.getDev e}/include/KF5/${path}";
      libs = list:
        lib.concatMapStringsSep " " (e: "-L${lib.getLib e}/lib") list;
    in ''
      substituteInPlace shell/source/unix/exec/shellexec.cxx \
        --replace /usr/bin/xdg-open ${if kdeIntegration then "kde-open5" else "xdg-open"}
  
  
negative.code:     ''
      # This to avoid using /lib:/usr/lib at linking
      + ''
        sed -i '/gb_LinkTarget_LDFLAGS/{ n; /rpath-link/d;}' solenv/gbuild/platform/unxgcc.mk
  
        find -name "*.cmd" -exec sed -i s,/lib:/usr/lib,, {} \;
      '';
  
    makeFlags = [ "SHELL=${bash}/bin/bash" ];
  
    enableParallelBuilding = true;
  
    buildTargets = [ "build-nocheck" ];
  
    doCheck = true;
  
  