tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
importCargoLock: fix git dep config file
linsui
2 years ago
e05bacf4
958ca2b0
+1
-1
1 changed file
expand all
collapse all
unified
split
pkgs
build-support
rust
import-cargo-lock.nix
+1
-1
pkgs/build-support/rust/import-cargo-lock.nix
···
201
202
# Set up configuration for the vendor directory.
203
cat > $out/.cargo-config <<EOF
204
-
[source."${gitParts.url}"]
205
git = "${gitParts.url}"
206
${lib.optionalString (gitParts ? type) "${gitParts.type} = \"${gitParts.value}\""}
207
replace-with = "vendored-sources"
···
201
202
# Set up configuration for the vendor directory.
203
cat > $out/.cargo-config <<EOF
204
+
[source."${gitParts.url}${lib.optionalString (gitParts ? type) "?${gitParts.type}=${gitParts.value}"}"]
205
git = "${gitParts.url}"
206
${lib.optionalString (gitParts ? type) "${gitParts.type} = \"${gitParts.value}\""}
207
replace-with = "vendored-sources"