unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / Atom feed
* [bug#43391] [PATCH 0/1] New package quickjs
@ 2020-09-14  1:11 rprior--- via Guix-patches via
  2020-09-14  1:13 ` [bug#43391] [PATCH 1/1] gnu: Add quickjs rprior--- via Guix-patches via
  0 siblings, 1 reply; 3+ messages in thread
From: rprior--- via Guix-patches via @ 2020-09-14  1:11 UTC (permalink / raw)
  To: 43391; +Cc: Ryan Prior

From: Ryan Prior <rprior@protonmail.com>

This patch adds Fabrice Bellard and Charlie Gordon's quickjs, a complete Javscript ES2020 implementation that fits inside a megabyte.

Ryan Prior (1):
  gnu: Add quickjs.

 gnu/packages/javascript.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

-- 
2.17.1






^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#43391] [PATCH 1/1] gnu: Add quickjs.
  2020-09-14  1:11 [bug#43391] [PATCH 0/1] New package quickjs rprior--- via Guix-patches via
@ 2020-09-14  1:13 ` rprior--- via Guix-patches via
  2020-09-14 14:15   ` bug#43391: " Mathieu Othacehe
  0 siblings, 1 reply; 3+ messages in thread
From: rprior--- via Guix-patches via @ 2020-09-14  1:13 UTC (permalink / raw)
  To: 43391; +Cc: Ryan Prior

From: Ryan Prior <rprior@protonmail.com>

* gnu/packages/javascript.scm (quickjs): New variable.
---
 gnu/packages/javascript.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm
index fbc7388f3d..9c6c95bd70 100644
--- a/gnu/packages/javascript.scm
+++ b/gnu/packages/javascript.scm
@@ -447,3 +447,33 @@ to use, and is very similar to Lua.  There is no need to interact with byzantine
 C++ template mechanisms, or worry about marking and unmarking garbage collection
 roots, or wrestle with obscure build systems.")
     (license license:isc)))
+
+(define-public quickjs
+  (package
+    (name "quickjs")
+    (version "2020-09-06")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://bellard.org/quickjs/quickjs-"
+                                  version ".tar.xz"))
+              (sha256
+               (base32 "05vpnnzmws7plnwsnk2brwf7whyj84l5xl0iahi1xdn6rpla6880"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:make-flags
+       (list "prefix="
+             (string-append "DESTDIR=" %output))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (replace 'check
+           (lambda _
+             (invoke "make" "microbench"))))))
+    (home-page "https://bellard.org/quickjs/")
+    (synopsis "Small embeddable Javascript engine")
+    (description "QuickJS supports the ES2020 specification including modules,
+asynchronous generators, proxies, BigInt and BigDecimal.  It can compile
+Javascript sources to executables with no external dependency.  It includes a
+command line interpreter with contextual colorization implemented in
+Javascript and a small built-in standard library with C library wrappers.")
+    (license license:expat)))
-- 
2.17.1






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#43391: [PATCH 1/1] gnu: Add quickjs.
  2020-09-14  1:13 ` [bug#43391] [PATCH 1/1] gnu: Add quickjs rprior--- via Guix-patches via
@ 2020-09-14 14:15   ` Mathieu Othacehe
  0 siblings, 0 replies; 3+ messages in thread
From: Mathieu Othacehe @ 2020-09-14 14:15 UTC (permalink / raw)
  To: rprior; +Cc: 43391-done


Hello,

> +               (base32 "05vpnnzmws7plnwsnk2brwf7whyj84l5xl0iahi1xdn6rpla6880"))))

I wrapped this line and pushed.

Thanks,

Mathieu




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-14 14:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-14  1:11 [bug#43391] [PATCH 0/1] New package quickjs rprior--- via Guix-patches via
2020-09-14  1:13 ` [bug#43391] [PATCH 1/1] gnu: Add quickjs rprior--- via Guix-patches via
2020-09-14 14:15   ` bug#43391: " Mathieu Othacehe

unofficial mirror of guix-patches@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-patches/1 guix-patches/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-patches guix-patches/ https://yhetil.org/guix-patches \
		guix-patches@gnu.org
	public-inbox-index guix-patches

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.patches


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git