anchor.diff: -{ stdenv, fetchpatch, fetchFromGitHub, cmake, pkgconfig, git
  -, boost, miniupnpc, openssl, unbound, cppzmq, zeromq, pcsclite
  -, readline, IOKit
  +{ stdenv, fetchFromGitHub, cmake, pkgconfig, git
  +, boost, miniupnpc, openssl, unbound, cppzmq
  +, zeromq, pcsclite, readline
  +, IOKit ? null
   }:
  +
  +assert stdenv.isDarwin -> IOKit != null;
  +
  +with stdenv.lib;
   
   stdenv.mkDerivation rec {
     name    = "monero-${version}";
  
positive.code: 
    hardeningDisable = [ "fortify" ];
  
    installPhase = ''
      make install
      install -Dt "$out/bin/" \
        bin/monero-blockchain-export \
        bin/monero-blockchain-import \
        bin/monero-wallet-rpc
    '';
  
    meta = with stdenv.lib; {
      description = "Private, secure, untraceable currency";
      homepage    = https://getmonero.org/;
      license     = licenses.bsd3;
      platforms   = platforms.all;
      maintainers = [ maintainers.ehmry ];
    };
  }
  
negative.code: 
    nativeBuildInputs = [ cmake pkgconfig git ];
  
    buildInputs = [
      boost miniupnpc openssl unbound
      cppzmq zeromq pcsclite readline
    ] ++ optional stdenv.isDarwin IOKit;
  
    cmakeFlags = [
      "-DCMAKE_BUILD_TYPE=Release"
  