-
|
first of all I feel sorry to ask since there is clear effort to provide a lot of documentation etc, congrats to that. It help me bootstrap the build quite fast. TLDR: I am trying to override a transitive dependency build instructions of a crate in my cargo workspace. I am trying to nix build wordbase, which depends on lindera, which has a build.rs that downloads files from the internet and then processes it. Nixpkgs has an exemple on how to patch the build.rs to work within a nix sandbox: so "all" I have to do is in crane buildDepsOnly (?) process, be able to patch the build of the Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Hi @teto please take a look at https://crane.dev/patching_dependency_sources.html, this should give you some examples on how to patch any crate source in your dependency tree. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
|
I have a dependency that uses sqlx and it cannot seem to discover its |
Beta Was this translation helpful? Give feedback.
-
|
Found a workaround via configuration.
SQLX_OFFLINE = "true";
SQLX_OFFLINE_DIR = "sqlx";
If the |
Beta Was this translation helpful? Give feedback.
Hi @teto please take a look at https://crane.dev/patching_dependency_sources.html, this should give you some examples on how to patch any crate source in your dependency tree.
Hope this helps!