me
/
guix
Archived
1
0
Fork 0

gnu: Add quickjs.

* gnu/packages/javascript.scm (quickjs): New variable.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
master
Ryan Prior 2020-09-14 01:13:31 +00:00 committed by Mathieu Othacehe
parent 846403ef62
commit 4a2cb3fa0e
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 31 additions and 0 deletions

View File

@ -447,3 +447,34 @@ 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)))