Skip to content

Commit 6dbb3ab

Browse files
anderspapittozimbatm
authored andcommittedFeb 19, 2017
buildRustPackage: fix deprecated use of registry.index config key (#22987)
See rust-lang/cargo@8214bb9 for the cargo commit which deprecated the registry.index key, and implements this as a replacement. This gets rid of the error message warning: custom registry support via the `registry.index` configuration is being removed, this functionality will not work in the future
1 parent 048c046 commit 6dbb3ab

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

Diff for: ‎pkgs/build-support/rust/fetch-cargo-deps

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ fetchCargoDeps() {
1111
echo "Using rust registry from $rustRegistry"
1212

1313
cat <<EOF > $out/config
14-
[registry]
15-
index = "file://$rustRegistry"
14+
[source.nix-store-rust-registry]
15+
registry = "file://$rustRegistry"
16+
17+
[source.crates-io]
18+
replace-with = "nix-store-rust-registry"
1619
EOF
1720

1821
export CARGO_HOME=$out

0 commit comments

Comments
 (0)
Please sign in to comment.