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