# Template file for 'nushell'
pkgname=nushell
version=0.102.0
revision=1
build_style=cargo
hostmakedepends="pkg-config"
makedepends="openssl-devel sqlite-devel"
depends="mimalloc"
short_desc="Modern shell for the GitHub era"
maintainer="Saksham <voidisnull@duck.com>"
license="MIT"
homepage="https://www.nushell.sh/"
changelog="https://www.nushell.sh/blog/"
distfiles="https://github.com/nushell/nushell/archive/refs/tags/${version}.tar.gz"
checksum=97faa3626be944d83b26c43d0b5c9e1ae14dfc55ef4465ac00fc1c64dceda7ce
register_shell="/usr/bin/nu"
# all tests fail with argument --target
make_check=no

case "$XBPS_TARGET_MACHINE" in
	ppc*) broken="arrow-rs parquet is busted garbage" ;;
esac

if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
	XBPS_CROSS_RUSTFLAGS+=" -latomic"
fi

post_install() {
	vlicense LICENSE
}
