From dc1da1426dc9ea3b3c3e420087956e091588f41e Mon Sep 17 00:00:00 2001 From: q66 Date: Wed, 10 Mar 2021 19:43:11 +0100 Subject: [PATCH] nushell: disable fetch plugin on systems without ring --- srcpkgs/nushell/template | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/srcpkgs/nushell/template b/srcpkgs/nushell/template index c59833b1556..438b7284dc8 100644 --- a/srcpkgs/nushell/template +++ b/srcpkgs/nushell/template @@ -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() {