package/nim: new package
PATCH 1/1 package/nim: new package
Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. See https://nim-lang.org/ for more information.
This is a host-only package required for the new chawan package.
Signed-off-by Waldemar Brodkorb <[email protected]>
--- DEVELOPERS | 1 + package/nim/nim.hash | 3 +++ package/nim/nim.mk | 22 ++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 package/nim/nim.hash create mode 100644 package/nim/nim.mk
DEVELOPERS +1 -0
@@ -3466,6 +3466,7 @@ F: package/evilwm/ F: package/fbv/ F: package/libpam-pkcs11/ F: package/mksh/ +F: package/nim/ F: package/perl-cgi/ F: package/perl-cgi-session/ F: package/perl-log-message/
package/nim/nim.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed +sha256 2639a06a5ea7a7fcf57df1e7e1ef4d1b2bee58c7ac9bd00dbd2aa5bea1e5a56a nim-2.2.12.tar.xz +sha256 1ef33f7376a2e4b4c090fcaa42d8a206c19bc70d8d816665ff983bc14c5fe159 copying.txt
package/nim/nim.mk new file +22 -0
@@ -0,0 +1,22 @@ +################################################################################ +# +# nim +# +################################################################################ + +NIM_VERSION = 2.2.12 +NIM_SITE = https://github.com/nim-lang/nightlies/releases/download/2026-09-08-version-2-2-8e8fbf60693418dc95bb0d762fd660231d08a583/ +NIM_SOURCE = nim-$(NIM_VERSION).tar.xz +NIM_LICENSE = MIT +NIM_LICENSE_FILES = copying.txt + +define HOST_NIM_BUILD_CMDS + ($(HOST_MAKE_ENV) cd $(@D) && ./build.sh) +endef + +define HOST_NIM_INSTALL_CMDS + cp $(@D)/bin/nim $(HOST_DIR)/bin + cp -dpfr $(@D)/lib/* $(HOST_DIR)/lib +endef + +$(eval $(host-generic-package))
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 5 lines · Waldemar Brodkorb
Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. See https://nim-lang.org/ for more information.
This is a host-only package required for the new chawan package.
Then this should be in a series together with the chawan patch.
Quoted 19 lines
package/nim/nim.hash new file +3
-0@@ -0,0 +1,3 @@ +# Locally computed +sha256 2639a06a5ea7a7fcf57df1e7e1ef4d1b2bee58c7ac9bd00dbd2aa5bea1e5a56a nim-2.2.12.tar.xz +sha256 1ef33f7376a2e4b4c090fcaa42d8a206c19bc70d8d816665ff983bc14c5fe159 copying.txtpackage/nim/nim.mk new file +4
-0@@ -0,0 +1,22 @@ +################################################################################ +# +# nim +#
package/nim/nim.mk line 14
Quoted 10 lines
package/nim/nim.mk new file +10
-0+################################################################################ + +NIM_VERSION = 2.2.12 +NIM_SITE = https://github.com/nim-lang/nightlies/releases/download/2026-09-08-version-2-2-8e8fbf60693418dc95bb0d762fd660231d08a583/ +NIM_SOURCE = nim-$(NIM_VERSION).tar.xz +NIM_LICENSE = MIT +NIM_LICENSE_FILES = copying.txt + +define HOST_NIM_BUILD_CMDS + ($(HOST_MAKE_ENV) cd $(@D) && ./build.sh)
Surrounding parenthesis are not needed.
Otherwise, looks good to me.
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot