We need to patch all the dependencies from solana-*, to make sure we don't mix packages from crates.io and our fork. Without this, cargo vendor will complain with an error like this:
$ cargo vendor
error: failed to sync
Caused by:
found duplicate version of package `solana-metrics v1.7.8` vendored from two sources:
source 1: registry `crates-io`
source 2: https://github.com/ChorusOne/solana?branch=program-test-178#af358e1a
I listed all of these under patches until Cargo stopped complaining.
This is needed in particular to make this work with buildRustPackage in Nix, because it relies on cargo vendor.
We need to patch all the dependencies from
solana-*
, to make sure we don't mix packages from crates.io and our fork. Without this,cargo vendor
will complain with an error like this:I listed all of these under patches until Cargo stopped complaining.
This is needed in particular to make this work with
buildRustPackage
in Nix, because it relies oncargo vendor
.