anchor.diff:  
     outputs = [ "out" "man" ];
   
  -  nativeBuildInputs = common.nativeBuildInputs ++ [ bison ] ++ optional (!stdenv.isDarwin) makeWrapper;
  +  nativeBuildInputs = common.nativeBuildInputs ++ [ bison ] ++ optional (!stdenv.hostPlatform.isDarwin) makeWrapper;
   
     buildInputs = common.buildInputs ++ [
       xz lzo lz4 bzip2 snappy
       libxml2 boost judy libevent cracklib
  -  ] ++ optional (stdenv.isLinux && !stdenv.isAarch32) numactl
  -    ++ optional stdenv.isLinux linux-pam
  -    ++ optional (!stdenv.isDarwin) mytopEnv;
  +  ] ++ optional (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch32) numactl
  +    ++ optional stdenv.hostPlatform.isLinux linux-pam
  +    ++ optional (!stdenv.hostPlatform.isDarwin) mytopEnv;
   
     patches = common.patches ++ [
       ./cmake-without-client.patch
  -  ] ++ optionals stdenv.isDarwin [
  +  ] ++ optionals stdenv.hostPlatform.isDarwin [
       ./cmake-without-plugin-auth-pam.patch
     ];
   
  
positive.code: { stdenv, fetchurl, fetchFromGitHub, cmake, pkgconfig, makeWrapper, ncurses, zlib, xz, lzo, lz4, bzip2, snappy
  , libiconv, openssl, pcre, boost, judy, bison, libxml2, libkrb5, linux-pam, curl
  , libaio, libevent, jemalloc, cracklib, systemd, numactl, perl
  , fixDarwinDylibNames, cctools, CoreServices
  , asio, buildEnv, check, scons, less
  , withoutClient ? false
  }:
  
  
negative.code: 
    buildInputs = [
      ncurses openssl zlib pcre jemalloc libiconv curl
    ] ++ optionals stdenv.hostPlatform.isLinux [ libaio systemd libkrb5 ]
      ++ optionals stdenv.hostPlatform.isDarwin [ perl fixDarwinDylibNames cctools CoreServices ];
  
    prePatch = ''
      sed -i 's,[^"]*/var/log,/var/log,g' storage/mroonga/vendor/groonga/CMakeLists.txt
  