buildRustPackage: fix deprecated use of registry.index config key (#22987)
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:
parent
048c04654d
commit
6dbb3ab031
@ -11,8 +11,11 @@ fetchCargoDeps() {
|
|||||||
echo "Using rust registry from $rustRegistry"
|
echo "Using rust registry from $rustRegistry"
|
||||||
|
|
||||||
cat <<EOF > $out/config
|
cat <<EOF > $out/config
|
||||||
[registry]
|
[source.nix-store-rust-registry]
|
||||||
index = "file://$rustRegistry"
|
registry = "file://$rustRegistry"
|
||||||
|
|
||||||
|
[source.crates-io]
|
||||||
|
replace-with = "nix-store-rust-registry"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
export CARGO_HOME=$out
|
export CARGO_HOME=$out
|
||||||
|
Loading…
x
Reference in New Issue
Block a user