anchor.diff:      # Avoid depending on frameworks.
       ++ optional (!useNcurses) "-DBUILD_CursesDialog=OFF";
   
  +  # make install attempts to use the just-built cmake
  +  preInstall = optional (stdenv.hostPlatform != stdenv.buildPlatform) ''
  +    sed -i 's|bin/cmake|${buildPackages.cmake}/bin/cmake|g' Makefile
  +  '';
  +
     dontUseCmakeConfigure = true;
     enableParallelBuilding = true;
   
  
positive.code:       --subst-var-by libc_lib ${getLib stdenv.cc.libc}
      substituteInPlace Modules/FindCxxTest.cmake \
        --replace "$""{PYTHON_EXECUTABLE}" ${stdenv.shell}
      configureFlags="--parallel=''${NIX_BUILD_CORES:-1} $configureFlags"
    '';
  
    configureFlags = [
  
negative.code:     ++ optional useQt4 qt4
      ++ optional withQt5 qtbase;
  
    depsBuildBuild = [ buildPackages.stdenv.cc ];
  
    propagatedBuildInputs = optional stdenv.isDarwin ps;
  
    preConfigure = ''
  