1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00

buildRustPackage: fix deprecated use of registry.index config key

See
8214bb953d
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
This commit is contained in:
Anders Papitto 2017-02-18 22:49:13 -08:00
parent 6d6cf3f24a
commit e8aa8cc94b

View file

@ -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