anchor.diff:  { stdenv, fetchurl, pkgconfig
  -, bzip2, curl, expat, libarchive, xz, zlib, libuv
  +, bzip2, curl, expat, libarchive, xz, zlib, libuv, rhash
   # darwin attributes
   , ps
   , isBootstrap ? false
  
positive.code: 
    src = fetchurl {
      url = "${meta.homepage}files/v${majorVersion}/cmake-${version}.tar.gz";
      # from https://cmake.org/files/v3.7/cmake-3.7.2-SHA-256.txt
      sha256 = "dc1246c4e6d168ea4d6e042cfba577c1acd65feea27e56f5ff37df920c30cae0";
    };
  
    prePatch = optionalString (!useSharedLibraries) ''
  
negative.code: 
    buildInputs =
      [ setupHook pkgconfig ]
      ++ optionals useSharedLibraries [ bzip2 curl expat libarchive xz zlib libuv rhash ]
      ++ optional useNcurses ncurses
      ++ optional useQt4 qt4;
  
  