anchor.diff:    postPatch = ''
       # remove vendored libraries
       rm -r external/{miniupnp,randomx,rapidjson,unbound}
  +    # export patched source for monero-gui
  +    cp -r . $source
     '';
   
     nativeBuildInputs = [ cmake pkgconfig ];
  
positive.code:     "-DRandomX_ROOT_DIR=${randomx}"
    ] ++ optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
  
    meta = with stdenv.lib; {
      description = "Private, secure, untraceable currency";
      homepage    = "https://getmonero.org/";
  
negative.code: , randomx, rapidjson
  , CoreData, IOKit, PCSC
  , trezorSupport ? true
  ,   libusb1  ? null
  ,   protobuf ? null
  ,   python3  ? null
  }:
  
  with stdenv.lib;
  