From 19a60318625b04f16861c89e6f1879d8b4f558d4 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 26 Jun 2021 14:33:19 -0500 Subject: [PATCH] gnu: Add node-acorn. * gnu/packages/node-xyz.scm (node-acorn): Add new variable. --- gnu/packages/node-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 27a76f59c3..7818b44d9e 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -21,6 +21,7 @@ (define-module (gnu packages node-xyz) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) + #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system node)) @@ -330,3 +331,29 @@ function with browser support.") Subsequent calls will either return the cached previous value or throw an error if desired.") (license license:isc))) + +(define-public node-acorn + (package + (name "node-acorn") + (version "8.4.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/acornjs/acorn/archive/refs/tags/" + version ".tar.gz")) + (sha256 + (base32 "0x049p4f0pdck168vc9zbagj1jw26g8d71dycckmd02y2rjddb9b")))) + (build-system node-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'change-directory + (lambda _ + (chdir "acorn") + #t))))) + (home-page "https://github.com/acornjs/acorn/tree/master/acorn") + (synopsis "A small, fast, Javascript-based Javascript parser") + (description "Acornjs is a Javascrip parser with many options and an +architecture supporting plugins.") + (license license:expat))) -- 2.32.0