diff --git a/srcpkgs/cargo-c/template b/srcpkgs/cargo-c/template index 6ac322a0a39..996393d7318 100644 --- a/srcpkgs/cargo-c/template +++ b/srcpkgs/cargo-c/template @@ -19,6 +19,14 @@ post_extract() { cd ${wrksrc} cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/Cargo.lock . cargo vendor + mkdir -p .cargo + cat <<-EOF >>.cargo/config.toml + [source.crates-io] + replace-with = "vendored-sources" + + [source.vendored-sources] + directory = "vendor" + EOF } post_install() {