From e8aa8cc94be45103fcd32b5f0bfee4a55eae4080 Mon Sep 17 00:00:00 2001 From: Anders Papitto Date: Sat, 18 Feb 2017 22:49:13 -0800 Subject: [PATCH] buildRustPackage: fix deprecated use of registry.index config key See https://github.com/rust-lang/cargo/commit/8214bb953dee7f529747ce69ff81fe294259a6a0 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 --- pkgs/build-support/rust/fetch-cargo-deps | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/rust/fetch-cargo-deps b/pkgs/build-support/rust/fetch-cargo-deps index 54593994990f..89b78547b38d 100755 --- a/pkgs/build-support/rust/fetch-cargo-deps +++ b/pkgs/build-support/rust/fetch-cargo-deps @@ -11,8 +11,11 @@ fetchCargoDeps() { echo "Using rust registry from $rustRegistry" cat < $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