summaryrefslogtreecommitdiffstats
path: root/pkgs/build-support
diff options
context:
space:
mode:
authoranderspapitto <anderspapitto@gmail.com>2017-02-19 10:25:25 -0800
committerzimbatm <zimbatm@zimbatm.com>2017-02-19 18:25:25 +0000
commit6dbb3ab03124610dad016fdd52fa2caae969d143 (patch)
tree0b09e124e9899e218ff45ff16e35046a458771a2 /pkgs/build-support
parent048c04654dfcb48c8d8e6ddbb011c752eaa88e61 (diff)
buildRustPackage: fix deprecated use of registry.index config key (#22987)
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
Diffstat (limited to 'pkgs/build-support')
-rwxr-xr-xpkgs/build-support/rust/fetch-cargo-deps7
1 files 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 <<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