summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-10-03 01:47:08 +0200
committerJan Tojnar <jtojnar@gmail.com>2019-10-03 01:47:08 +0200
commitb3fcd9375d89060979ce67d13c6714ebc3e1c002 (patch)
treee5120c8684e77b7b579c5fd348915cecdca66c57 /doc
parent3a4658ea04d66e849aa29c1f747ab8becc14949c (diff)
parent3dc58eda52ef935313cd0418264abd1d30d6b4d3 (diff)
downloadnixpkgs-b3fcd9375d89060979ce67d13c6714ebc3e1c002.tar
nixpkgs-b3fcd9375d89060979ce67d13c6714ebc3e1c002.tar.gz
nixpkgs-b3fcd9375d89060979ce67d13c6714ebc3e1c002.tar.bz2
nixpkgs-b3fcd9375d89060979ce67d13c6714ebc3e1c002.tar.lz
nixpkgs-b3fcd9375d89060979ce67d13c6714ebc3e1c002.tar.xz
nixpkgs-b3fcd9375d89060979ce67d13c6714ebc3e1c002.tar.zst
nixpkgs-b3fcd9375d89060979ce67d13c6714ebc3e1c002.zip
Merge branch 'master' into staging-next
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/rust.section.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md
index 2d9338f2e89..83b7b159bd6 100644
--- a/doc/languages-frameworks/rust.section.md
+++ b/doc/languages-frameworks/rust.section.md
@@ -43,6 +43,7 @@ rustPlatform.buildRustPackage rec {
   };
 
   cargoSha256 = "0q68qyl2h6i0qsz82z840myxlnjay8p1w5z7hfyr8fqp7wgwa9cx";
+  verifyCargoDeps = true;
 
   meta = with stdenv.lib; {
     description = "A fast line-oriented regex search tool, similar to ag and ack";
@@ -64,6 +65,9 @@ When the `Cargo.lock`, provided by upstream, is not in sync with the
 added in `cargoPatches` will also be prepended to the patches in `patches` at
 build-time.
 
+When `verifyCargoDeps` is set to `true`, the build will also verify that the
+`cargoSha256` is not out of date by comparing the `Cargo.lock` file in both the `cargoDeps` and `src`. Note that this option changes the value of `cargoSha256` since it also copies the `Cargo.lock` in it. To avoid breaking backward-compatibility this option is not enabled by default but hopefully will be in the future.
+
 ## Compiling Rust crates using Nix instead of Cargo
 
 ### Simple operation