anchor.diff:  , monero, miniupnpc, unbound, readline
   , boost, libunwind, libsodium, pcsclite
   , randomx, zeromq, libgcrypt, libgpgerror
  -, hidapi, rapidjson
  +, hidapi, rapidjson, quirc
   , trezorSupport ? true
   ,   libusb1  ? null
   ,   protobuf ? null
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "monero-gui";
    version = "0.17.1.8";
  
    src = fetchFromGitHub {
      owner  = "monero-project";
      repo   = "monero-gui";
      rev    = "v${version}";
      sha256 = "13cjrfdkr7c2ff8j2rg8hvhlc00af38vcs67wlx2109i2baq4pp3";
    };
  
    nativeBuildInputs = [
  
negative.code:     monero miniupnpc unbound readline
      randomx libgcrypt libgpgerror
      boost libunwind libsodium pcsclite
      zeromq hidapi rapidjson quirc
    ] ++ optionals trezorSupport [ libusb1 protobuf python3 ]
      ++ optionals stdenv.isDarwin [ qtmacextras ];
  
  