anchor.diff:  , openssl, pcre, boost, judy, bison, libxml2
   , libaio, libevent, groff, jemalloc, cracklib, systemd, numactl, perl
   , fixDarwinDylibNames, cctools, CoreServices
  +, asio, buildEnv, check, qt4, scons
   }:
   
   with stdenv.lib;
  
positive.code:   inherit client; # libmysqlclient.so in .out, necessary headers in .dev and utils in .bin
    server = everything; # a full single-output build, including everything in `client` again
    inherit connector-c; # libmysqlclient.so
  };
  
  common = rec { # attributes common to both builds
  
negative.code:     "-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1"
      "-DWITHOUT_FEDERATED_STORAGE_ENGINE=1"
      "-DWITH_WSREP=ON"
      "-DWITH_INNODB_DISALLOW_WRITES=ON"
    ] ++ stdenv.lib.optionals stdenv.isDarwin [
      "-DWITHOUT_OQGRAPH_STORAGE_ENGINE=1"
      "-DWITHOUT_TOKUDB=1"
  