From bfa847dbe04176a9222f47381a4fa5d5252f9aa8 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 26 Jun 2021 14:33:19 -0500 Subject: gnu: Add node-acorn. * gnu/packages/node-xyz.scm (node-acorn): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/node-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu') 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 ;;; Copyright © 2020 Giacomo Leidi ;;; Copyright © 2021 Noisytoot +;;; Copyright © 2021 Charles ;;; ;;; 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") -- cgit 1.4.1