* [Buildroot] [git commit branch/next] package/nushell: new package
@ 2023-08-29 21:33 Thomas Petazzoni via buildroot
0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni via buildroot @ 2023-08-29 21:33 UTC (permalink / raw)
To: buildroot
[-- Attachment #1: Type: text/plain, Size: 3253 bytes --]
commit: https://git.buildroot.net/buildroot/commit/?id=f8047ff5987efc80f6ead51edae126911c02a8ad
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
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>
---
DEVELOPERS | 3 +++
package/Config.in | 1 +
package/nushell/Config.in | 12 ++++++++++++
package/nushell/nushell.hash | 3 +++
package/nushell/nushell.mk | 20 ++++++++++++++++++++
5 files changed, 39 insertions(+)
diff --git a/DEVELOPERS b/DEVELOPERS
index 241de082eb..24ec17a7c2 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -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/
diff --git a/package/Config.in b/package/Config.in
index 3d16ea37d1..5449884809 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/nushell/Config.in b/package/nushell/Config.in
new file mode 100644
index 0000000000..edb01d2f72
--- /dev/null
+++ b/package/nushell/Config.in
@@ -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
diff --git a/package/nushell/nushell.hash b/package/nushell/nushell.hash
new file mode 100644
index 0000000000..b553a6c2bc
--- /dev/null
+++ b/package/nushell/nushell.hash
@@ -0,0 +1,3 @@
+# Locally generated
+sha256 352e807698d5f95e9bfdd9dd5512acab3cbef315379299a32e5f322a76eb718a nushell-0.76.0.tar.gz
+sha256 e189616e535e9f7bf410a72e6fc51ad1e0ae461c58d592e186c2669daa5d1e5d LICENSE
diff --git a/package/nushell/nushell.mk b/package/nushell/nushell.mk
new file mode 100644
index 0000000000..b9c1ee6434
--- /dev/null
+++ b/package/nushell/nushell.mk
@@ -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))
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-30 20:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-29 21:33 [Buildroot] [git commit branch/next] package/nushell: new package Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).