From d1f26f9068282db2496fc4d954dcdfedaf91d779 Mon Sep 17 00:00:00 2001 From: q66 Date: Wed, 17 Feb 2021 02:24:07 +0100 Subject: [PATCH] nushell: enable extra features always --- srcpkgs/nushell/template | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/srcpkgs/nushell/template b/srcpkgs/nushell/template index f42cd9776ee..9a14dc1771e 100644 --- a/srcpkgs/nushell/template +++ b/srcpkgs/nushell/template @@ -1,10 +1,11 @@ # Template file for 'nushell' pkgname=nushell version=0.27.0 -revision=1 +revision=2 build_style=cargo -hostmakedepends="pkg-config libgit2-devel" -makedepends="libressl-devel libgit2-devel" +configure_args="--features=extra" +hostmakedepends="pkg-config python3 libgit2-devel" +makedepends="libressl-devel libgit2-devel libX11-devel libxcb-devel" short_desc="Modern shell for the GitHub era" maintainer="Jan Christian Grünhage " license="MIT" @@ -16,11 +17,17 @@ register_shell="/usr/bin/nu" # all tests fail with argument --target make_check=no -case "$XBPS_TARGET_MACHINE" in - x86_64*|i686*) - configure_args="--features=extra" - makedepends+=" libX11-devel libxcb-devel" ;; -esac +post_patch() { + # pull in updates for https://github.com/alkis/decimal + # the latest release (2.0.4) is missing fixes needed for + # platforms with unsigned char type; pin it to a specific + # revision until a new release is made + # + # remove this post_patch once that has happened + echo '[patch.crates-io.decimal]' >> Cargo.toml + echo 'git = "https://github.com/alkis/decimal"' >> Cargo.toml + echo 'rev = "c27d9a165afc55ec98fb4db79b12841df578387e"' >> Cargo.toml +} post_install() { vlicense LICENSE