diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2017-11-12 18:43:20 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2017-11-12 19:39:20 +0200 |
| commit | 89ba894eb37cacbe8c38863ec63e2826f85610aa (patch) | |
| tree | 90630fb05fab139297bc6528b0dbb91307f0592b /gnu/packages/javascript.scm | |
| parent | 76379dcace5c4a79ae62d77223cc01551c40ee11 (diff) | |
gnu: Add mujs.
* gnu/packages/javascript.scm (mujs): New variable.
Diffstat (limited to 'gnu/packages/javascript.scm')
| -rw-r--r-- | gnu/packages/javascript.scm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index 2d1f6acfb9e..1fe62d23081 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net> | 2 | ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net> |
| 3 | ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> | 3 | ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> |
| 4 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> | 4 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
| 5 | ;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il> | ||
| 5 | ;;; | 6 | ;;; |
| 6 | ;;; This file is part of GNU Guix. | 7 | ;;; This file is part of GNU Guix. |
| 7 | ;;; | 8 | ;;; |
| @@ -27,6 +28,7 @@ | |||
| 27 | #:use-module (guix packages) | 28 | #:use-module (guix packages) |
| 28 | #:use-module (guix download) | 29 | #:use-module (guix download) |
| 29 | #:use-module (guix git-download) | 30 | #:use-module (guix git-download) |
| 31 | #:use-module (guix build-system gnu) | ||
| 30 | #:use-module (guix build-system trivial) | 32 | #:use-module (guix build-system trivial) |
| 31 | #:use-module (guix build-system minify)) | 33 | #:use-module (guix build-system minify)) |
| 32 | 34 | ||
| @@ -365,3 +367,35 @@ possible. Many of these shams are intended only to allow code to be written | |||
| 365 | to ES5 without causing run-time errors in older engines. In many cases, this | 367 | to ES5 without causing run-time errors in older engines. In many cases, this |
| 366 | means that these shams cause many ES5 methods to silently fail.") | 368 | means that these shams cause many ES5 methods to silently fail.") |
| 367 | (license license:expat))) | 369 | (license license:expat))) |
| 370 | |||
| 371 | (define-public mujs | ||
| 372 | (package | ||
| 373 | (name "mujs") | ||
| 374 | (version "1.0.1") | ||
| 375 | (source (origin | ||
| 376 | (method git-fetch) | ||
| 377 | (uri (git-reference | ||
| 378 | (url "http://git.ghostscript.com/mujs.git") | ||
| 379 | (commit version))) | ||
| 380 | (file-name (string-append name "-" version "-checkout")) | ||
| 381 | (sha256 | ||
| 382 | (base32 | ||
| 383 | "0ch0s3vqs7agf65gbks32bj44nk1dr2s23ki47b0bhdhzvw9q93j")))) | ||
| 384 | (build-system gnu-build-system) | ||
| 385 | (arguments | ||
| 386 | '(#:phases (modify-phases %standard-phases | ||
| 387 | (delete 'configure)) ; no configure | ||
| 388 | #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")) | ||
| 389 | (string-append "CC=gcc")) | ||
| 390 | #:tests? #f)) ; no tests | ||
| 391 | (home-page "http://dev.mujs.com") | ||
| 392 | (synopsis "JavaScript interpreter written in C") | ||
| 393 | (description "MuJS is a lightweight Javascript interpreter designed for | ||
| 394 | embedding in other software to extend them with scripting capabilities. MuJS | ||
| 395 | was designed with a focus on small size, correctness, and simplicity. It is | ||
| 396 | written in portable C and implements ECMAScript as specified by ECMA-262. The | ||
| 397 | interface for binding with native code is designed to be as simple as possible | ||
| 398 | to use, and is very similar to Lua. There is no need to interact with byzantine | ||
| 399 | C++ template mechanisms, or worry about marking and unmarking garbage collection | ||
| 400 | roots, or wrestle with obscure build systems.") | ||
| 401 | (license license:isc))) | ||
