package/nushell: new package

Nushell is a shell - written in Rust - that makes use of the nushell
language to interact with the operating system

Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Sebastian Weyer 2023-03-08 14:15:51 +01:00 committed by Thomas Petazzoni
parent 1ae3f1748b
commit f8047ff598
5 changed files with 39 additions and 0 deletions

View File

@ -2683,6 +2683,9 @@ F: support/misc/toolchainfile.cmake.in
N: Sam Voss <sam.voss@gmail.com>
F: package/ripgrep/
N: Sebastian Weyer <sebastian.weyer@smile.fr>
F: package/nushell/
N: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
F: package/mmc-utils/
F: package/python-flask-jsonrpc/

View File

@ -2607,6 +2607,7 @@ comment "Shells"
source "package/bash/Config.in"
source "package/dash/Config.in"
source "package/mksh/Config.in"
source "package/nushell/Config.in"
source "package/zsh/Config.in"
comment "Utilities"
source "package/apg/Config.in"

12
package/nushell/Config.in Normal file
View File

@ -0,0 +1,12 @@
config BR2_PACKAGE_NUSHELL
bool "nushell"
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
select BR2_PACKAGE_HOST_RUSTC
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_HOST_PKGCONF
select BR2_PACKAGE_NCURSES
select BR2_PACKAGE_NCURSES_TARGET_PROGS
help
A new type of shell.
https://github.com/nushell/nushell

View File

@ -0,0 +1,3 @@
# Locally generated
sha256 352e807698d5f95e9bfdd9dd5512acab3cbef315379299a32e5f322a76eb718a nushell-0.76.0.tar.gz
sha256 e189616e535e9f7bf410a72e6fc51ad1e0ae461c58d592e186c2669daa5d1e5d LICENSE

View File

@ -0,0 +1,20 @@
################################################################################
#
# nushell
#
################################################################################
NUSHELL_VERSION = 0.76.0
NUSHELL_SITE = $(call github,nushell,nushell,$(NUSHELL_VERSION))
NUSHELL_LICENSE = MIT
NUSHELL_LICENSE_FILES = LICENSE
NUSHELL_DEPENDENCIES = host-pkgconf openssl ncurses
# Add /usr/bin/nu to /etc/shells as in package/bash/bash.mk
define NUSHELL_ADD_NU_TO_SHELLS
grep -qsE '^/usr/bin/nu$$' $(TARGET_DIR)/etc/shells \
|| echo "/usr/bin/nu" >> $(TARGET_DIR)/etc/shells
endef
NUSHELL_TARGET_FINALIZE_HOOKS += NUSHELL_ADD_NU_TO_SHELLS
$(eval $(cargo-package))