summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorAnders Papitto <anderspapitto@gmail.com>2017-03-01 11:06:05 -0800
committerRobin Gloster <mail@glob.in>2017-03-02 13:40:19 +0100
commit095cf1b903a9a3c52c2fdf67afc76d97a0c6af7b (patch)
treeb4bef81b9738ad033e6fc3fc8ac2451db5abf8f8 /pkgs/build-support
parent306eb6ded018040470be2a462b0adbd7412349a2 (diff)
downloadnixpkgs-095cf1b903a9a3c52c2fdf67afc76d97a0c6af7b.tar
nixpkgs-095cf1b903a9a3c52c2fdf67afc76d97a0c6af7b.tar.gz
nixpkgs-095cf1b903a9a3c52c2fdf67afc76d97a0c6af7b.tar.bz2
nixpkgs-095cf1b903a9a3c52c2fdf67afc76d97a0c6af7b.tar.lz
nixpkgs-095cf1b903a9a3c52c2fdf67afc76d97a0c6af7b.tar.xz
nixpkgs-095cf1b903a9a3c52c2fdf67afc76d97a0c6af7b.tar.zst
nixpkgs-095cf1b903a9a3c52c2fdf67afc76d97a0c6af7b.zip
Revert "buildRustPackage: fix deprecated use of registry.index config key"
This reverts commit e8aa8cc94be45103fcd32b5f0bfee4a55eae4080.
Diffstat (limited to 'pkgs/build-support')
-rwxr-xr-xpkgs/build-support/rust/fetch-cargo-deps7
1 files changed, 2 insertions, 5 deletions
diff --git a/pkgs/build-support/rust/fetch-cargo-deps b/pkgs/build-support/rust/fetch-cargo-deps
index 89b78547b38..54593994990 100755
--- a/pkgs/build-support/rust/fetch-cargo-deps
+++ b/pkgs/build-support/rust/fetch-cargo-deps
@@ -11,11 +11,8 @@ fetchCargoDeps() {
     echo "Using rust registry from $rustRegistry"
 
     cat <<EOF > $out/config
-[source.nix-store-rust-registry]
-registry = "file://$rustRegistry"
-
-[source.crates-io]
-replace-with = "nix-store-rust-registry"
+[registry]
+index = "file://$rustRegistry"
 EOF
 
     export CARGO_HOME=$out