summary refs log tree commit diff
path: root/doc/languages-frameworks
diff options
context:
space:
mode:
authorLéo Gaspard <leo@gaspard.io>2018-08-14 11:20:30 +0900
committerLéo Gaspard <leo@gaspard.io>2018-08-14 20:09:45 +0900
commitaf960e5df9450664968d3392130e499fbaf1713f (patch)
treefd0cf9f25e3461d26be0a4c8dba33fac97d79e93 /doc/languages-frameworks
parent48e5fbe8eeddf9fbe1fca3c9ee0e5fd5ac1bafb0 (diff)
downloadnixlib-af960e5df9450664968d3392130e499fbaf1713f.tar
nixlib-af960e5df9450664968d3392130e499fbaf1713f.tar.gz
nixlib-af960e5df9450664968d3392130e499fbaf1713f.tar.bz2
nixlib-af960e5df9450664968d3392130e499fbaf1713f.tar.lz
nixlib-af960e5df9450664968d3392130e499fbaf1713f.tar.xz
nixlib-af960e5df9450664968d3392130e499fbaf1713f.tar.zst
nixlib-af960e5df9450664968d3392130e499fbaf1713f.zip
buildRustPackage: add documentation about cargoPatches
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).