anchor.diff:      ++ optional (!stdenv.hostPlatform.isDarwin) makeWrapper;
   
     buildInputs = [
  -    ncurses openssl zlib pcre2 libiconv curl
  -  ] ++ optionals stdenv.hostPlatform.isLinux [ liburing systemd libkrb5 ]
  -    ++ optionals stdenv.hostPlatform.isDarwin [ perl cctools CoreServices ]
  +    curl libiconv ncurses openssl pcre2 zlib
  +  ] ++ optionals stdenv.hostPlatform.isLinux [ libkrb5 liburing systemd ]
  +    ++ optionals stdenv.hostPlatform.isDarwin [ CoreServices cctools perl ]
       ++ optional (!stdenv.hostPlatform.isDarwin) [ jemalloc ];
   
     prePatch = ''
  
positive.code: 
    outputs = [ "out" "man" ];
  
    nativeBuildInputs = common.nativeBuildInputs ++ [ bison boost.dev ];
  
    buildInputs = common.buildInputs ++ [
      bzip2 lz4 lzo snappy xz zstd
      libxml2 judy libevent cracklib
    ] ++ optional (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch32) numactl
      ++ optionals withStorageMroonga [ kytea libsodium msgpack zeromq ]
      ++ optionals stdenv.hostPlatform.isLinux [ linux-pam pmdk.dev ]
      ++ optional (!stdenv.hostPlatform.isDarwin) mytopEnv;
  
    patches = common.patches;
  
  
negative.code:   '';
  
    postInstall = common.postInstall + ''
      rm -r "$out"/share/aclocal
      chmod +x "$out"/bin/wsrep_sst_common
      rm "$out"/bin/{mariadb-client-test,mariadb-test,mysql_client_test,mysqltest}
    '' + optionalString withStorageMroonga ''
  