summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorCharles <charles.b.jackson@protonmail.com>2021-06-26 14:33:19 -0500
committerEfraim Flashner <efraim@flashner.co.il>2021-07-19 14:28:52 +0300
commitbfa847dbe04176a9222f47381a4fa5d5252f9aa8 (patch)
tree974fdc44ad1830d5ef0d41ed1348ba0bc1e550c6 /gnu
parent0f46e0b79cd6f4cde98c9194f2880656930c206b (diff)
downloadguix-bfa847dbe04176a9222f47381a4fa5d5252f9aa8.tar.gz
gnu: Add node-acorn.
* gnu/packages/node-xyz.scm (node-acorn): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/node-xyz.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 27a76f59c3..cbb68f77d6 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;; Copyright © 2021 Noisytoot <noisytoot@disroot.org>
+;;; Copyright © 2021 Charles <charles.b.jackson@protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -24,6 +25,32 @@
   #:use-module (guix git-download)
   #:use-module (guix build-system node))
 
+(define-public node-acorn
+  (package
+    (name "node-acorn")
+    (version "8.4.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/acornjs/acorn")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "068h5gysz8bbslq31dva8f223rdf8l7w6nxcxjnv4zdprwkzkhaa"))))
+    (build-system node-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'change-directory
+           (lambda _
+             (chdir "acorn"))))))
+    (home-page "https://github.com/acornjs/acorn/tree/master/acorn")
+    (synopsis "Javascript-based Javascript parser")
+    (description "Acornjs is a Javascrip parser with many options and an
+architecture supporting plugins.")
+    (license license:expat)))
+
 (define-public node-color-name
   (package
     (name "node-color-name")