nushell: disable fetch plugin on systems without ring

This commit is contained in:
q66 2021-03-10 19:43:11 +01:00
parent 81e0103b38
commit dc1da1426d
1 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,14 @@ post_patch() {
echo '[patch.crates-io.decimal]' >> Cargo.toml
echo 'git = "https://github.com/alkis/decimal"' >> Cargo.toml
echo 'rev = "c27d9a165afc55ec98fb4db79b12841df578387e"' >> Cargo.toml
# the fetch plugin pulls in ring
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*|aarch64*|arm*) ;;
*)
vsed -i 's/"fetch",//' Cargo.toml
;;
esac
}
post_install() {