-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support cargoPatches? #192
Comments
For anyone else stumbling on this, here's the generic patch apply trick:
|
@tv42 does this approach allow patching or otherwise modifying a crate that exists as a dependency in Cargo.toml? If so, please could you help me understand how to do that? |
@paulyoung This method seems to be for patching the source being built itself. To patch dependencies, you'd need to e.g. change the Cargo.toml lines to point to something else, or something like that -- I don't know if naersk has any mechanism for replacing dependencies. |
rustPlatform.buildRustPackage
supports acargoPatches
option, that can be used to insert aCargo.lock
into upstream tarballs that don't contain it. It would be nice if the same was possible with naersk.Alternatively, and more generically, this could be solved with a
applyPatches { src; patches = []; }
derivation -- but I'm not aware of such existing. I guess I'm writing that myself, next...The text was updated successfully, but these errors were encountered: