anchor.diff:      "-DBUILD_GUI_DEPS=ON"
       "-DReadline_ROOT_DIR=${readline.dev}"
       "-DRandomX_ROOT_DIR=${randomx}"
  -  ] ++ optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
  +  ] ++ lib.optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
   
     outputs = [ "out" "source" ];
   
  
positive.code: , zeromq, pcsclite, readline, libsodium, hidapi
  , randomx, rapidjson
  , CoreData, IOKit, PCSC
  , trezorSupport ? true
  ,   libusb1  ? null
  ,   protobuf ? null
  ,   python3  ? null
  }:
  
  with lib;
  
  assert stdenv.isDarwin -> IOKit != null;
  assert trezorSupport -> all (x: x!=null) [ libusb1 protobuf python3 ];
  
  stdenv.mkDerivation rec {
    pname = "monero";
  
negative.code:     zeromq pcsclite readline
      libsodium hidapi randomx rapidjson
      protobuf
    ] ++ lib.optionals stdenv.isDarwin [ IOKit CoreData PCSC ]
      ++ lib.optionals trezorSupport [ libusb1 protobuf python3 ];
  
    cmakeFlags = [
      "-DCMAKE_BUILD_TYPE=Release"
  