On Tue, Jul 13, 2021 at 05:36:54AM +0000, Charles wrote: > From 321c2e32a7a78587401dc5d683468603c9a6d139 Mon Sep 17 00:00:00 2001 > From: Charles > Date: Sat, 26 Jun 2021 14:33:19 -0500 > Subject: [PATCH 1/4] gnu: Add node-acorn. > > * gnu/packages/node-xyz.scm (node-acorn): Add new variable. > --- > gnu/packages/node-xyz.scm | 30 ++++++++++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm > index 27a76f59c3..dc8ae8bb94 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. > ;;; > @@ -330,3 +331,32 @@ function with browser support.") > Subsequent calls will either return the cached previous value or throw an error > if desired.") > (license license:isc))) It wasn't mentioned at the top of the file but I moved this package so it was sorted alphabetically. > +(define-public node-acorn > + (let ((commit "9ef40d8ae2c08e07fd2f510bed58c3ca9edcbe46") > + (revision "1")) There didn't seem to be a reason to use this commit specifically so I switched the package to use the 8.4.1 release. > + (package > + (name "node-acorn") > + (version (git-version "8.4.1" revision commit)) > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/acornjs/acorn") > + (commit commit))) > + (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") > + #t))))) > + (home-page "https://github.com/acornjs/acorn/tree/master/acorn") > + (synopsis "A small, fast, Javascript-based Javascript parser") After 'guix lint' I switched this to 'Javascript-based Javascript parser' > + (description "Acornjs is a Javascrip parser with many options and an > +architecture supporting plugins.") > + (license license:expat)))) > -- > 2.32.0 > -- Efraim Flashner אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted