Skip to content

How to patch crate dependencies #714

Answered by eureka-cpu
eureka-cpu asked this question in Q&A
Discussion options

You must be logged in to vote
{
          workspace = rec {
            root = ./.;
            src = craneLib.cleanCargoSource root;
            canonicalizePath = crate: root + "/${crate}";
            canonicalizePaths = crates: map (crate: canonicalizePath crate) crates;
          };
          # Check if the dependency requires the `risc0-circuit-recursion` as part of its build.
          isRisc0CircuitRecursion = p: lib.hasPrefix
            "git+https://github.com/anagrambuild/risc0?branch=v1.0.1-bonsai-fix#189829d0b84d57e8928a85aa4fac60dd6ce45ea9"
            p.source;
          cargoVendorDir = craneLib.vendorCargoDeps (workspace // {
            overrideVendorGitCheckout = ps: drv:
              if lib.any (p: (

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@eureka-cpu
Comment options

@eureka-cpu
Comment options

@eureka-cpu
Comment options

@eureka-cpu
Comment options

@eureka-cpu
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by eureka-cpu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant