anchor.diff:  
     enableParallelBuilding = true;
   
  -  preInstall = ''mkdir "$doc" '';
  -
  -  postInstall = ''moveToOutput "share/cmake-*/Help" "$doc" '';
  -
     meta = with stdenv.lib; {
       homepage = http://www.cmake.org/;
       description = "Cross-Platform Makefile Generator";
  
positive.code:     optional (stdenv ? glibc) ./search-path-3.2.patch
      ++ optional stdenv.isCygwin ./3.2.2-cygwin.patch;
  
    outputs = [ "out" "doc" ];
    setOutputFlags = false;
  
    setupHook = ./setup-hook.sh;
  
negative.code:         --subst-var-by glibc_lib ${getLib glibc}
      '';
    configureFlags =
      [ "--docdir=share/doc/${name}"
        "--no-system-jsoncpp"
      ]
      ++ optional (!stdenv.isCygwin) "--system-libs"
  