summary refs log tree commit diff
path: root/doc/languages-frameworks
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-08-14 14:23:51 +0200
committerGitHub <noreply@github.com>2018-08-14 14:23:51 +0200
commit78777fbd6b3490a0ec5ca6200978bf9c6d77fc4d (patch)
treeca06a268184e6ecc22f9f3c8e183d7a3dee39dd7 /doc/languages-frameworks
parentd6b9ab68655915d091ee5efa66bea33f77ee60fe (diff)
parentaf960e5df9450664968d3392130e499fbaf1713f (diff)
downloadnixlib-78777fbd6b3490a0ec5ca6200978bf9c6d77fc4d.tar
nixlib-78777fbd6b3490a0ec5ca6200978bf9c6d77fc4d.tar.gz
nixlib-78777fbd6b3490a0ec5ca6200978bf9c6d77fc4d.tar.bz2
nixlib-78777fbd6b3490a0ec5ca6200978bf9c6d77fc4d.tar.lz
nixlib-78777fbd6b3490a0ec5ca6200978bf9c6d77fc4d.tar.xz
nixlib-78777fbd6b3490a0ec5ca6200978bf9c6d77fc4d.tar.zst
nixlib-78777fbd6b3490a0ec5ca6200978bf9c6d77fc4d.zip
Merge pull request #44981 from Ekleog/rust-patch-bis
buildRustPackage: allow patches to fix Cargo.lock
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r--doc/languages-frameworks/rust.section.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md
index b77c41e9b229..eec982d4c90a 100644
--- a/doc/languages-frameworks/rust.section.md
+++ b/doc/languages-frameworks/rust.section.md
@@ -59,6 +59,11 @@ all crate sources of this package. Currently it is obtained by inserting a
 fake checksum into the expression and building the package once. The correct
 checksum can be then take from the failed build.
 
+When the `Cargo.lock`, provided by upstream, is not in sync with the
+`Cargo.toml`, it is possible to use `cargoPatches` to update it. All patches
+added in `cargoPatches` will also be prepended to the patches in `patches` at
+build-time.
+
 To install crates with nix there is also an experimental project called
 [nixcrates](https://github.com/fractalide/nixcrates).