importCargoLock: fix git dep config file

This commit is contained in:
linsui 2023-06-29 21:47:27 +08:00
parent 958ca2b0c0
commit e05bacf4e8

View file

@ -201,7 +201,7 @@ let
# Set up configuration for the vendor directory.
cat > $out/.cargo-config <<EOF
[source."${gitParts.url}"]
[source."${gitParts.url}${lib.optionalString (gitParts ? type) "?${gitParts.type}=${gitParts.value}"}"]
git = "${gitParts.url}"
${lib.optionalString (gitParts ? type) "${gitParts.type} = \"${gitParts.value}\""}
replace-with = "vendored-sources"