diff --git a/srcpkgs/cargo/template b/srcpkgs/cargo/template index 0825aa949de..2483e7c9374 100644 --- a/srcpkgs/cargo/template +++ b/srcpkgs/cargo/template @@ -19,6 +19,9 @@ checksum="eb6e0365af8fe8a0d78d2caf234ee05c66ca63b13b9396fe83f3ef452f3f0c84 a6f119be6105b911131eb89e6919dfa08fa849e6f5bc46ced24adc2075d39b71" nocross=yes +pre_configure() { + configure_args+=" --host=${XBPS_TRIPLET/-pc-/-unknown-} --build=${XBPS_TRIPLET/-pc-/-unknown-}" +} post_extract() { rm -rf src/rust-installer mv ../rust-installer-${_githash_installer} src/rust-installer