anchor.diff: -{ lib, stdenv, fetchurl, cmake, bison, pkg-config
  +{ lib, stdenv, fetchurl, cmake, bison, pkg-config, nukeReferences
   , boost, libedit, libevent, lz4, ncurses, openssl, protobuf, readline, zlib, perl
   , cctools, CoreServices, developer_cmds
   , libtirpc, rpcsvc-proto, nixosTests
  
positive.code:     sed -i -e "s|/usr/bin/libtool|libtool|" cmake/merge_archives.cmake.in
    '';
    postInstall = ''
      moveToOutput "lib/*.a" $static
      ln -s libmysqlclient${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/libmysqlclient_r${stdenv.hostPlatform.extensions.sharedLibrary}
    '';
  
negative.code:     export PATH=$PATH:$TMPDIR
    '';
  
    nativeBuildInputs = [ bison cmake pkg-config nukeReferences ]
      ++ lib.optionals (!stdenv.isDarwin) [ rpcsvc-proto ];
  
    buildInputs = [ boost libedit libevent lz4 ncurses openssl protobuf readline zlib ]
  