Skip to content

Commit

Permalink
buildRustPackage: fix deprecated use of registry.index config key (#2…
Browse files Browse the repository at this point in the history
…2987)

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
  • Loading branch information
anderspapitto authored and zimbatm committed Feb 19, 2017
1 parent 048c046 commit 6dbb3ab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/build-support/rust/fetch-cargo-deps
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ fetchCargoDeps() {
echo "Using rust registry from $rustRegistry"

cat <<EOF > $out/config
[registry]
index = "file://$rustRegistry"
[source.nix-store-rust-registry]
registry = "file://$rustRegistry"

[source.crates-io]
replace-with = "nix-store-rust-registry"
EOF

export CARGO_HOME=$out
Expand Down

0 comments on commit 6dbb3ab

Please sign in to comment.