From: Ron Nazarov via Guix-patches via <guix-patches@gnu.org>
To: 47682@debbugs.gnu.org
Cc: Ron Nazarov <noisytoot@disroot.org>
Subject: [bug#47682] [PATCH v2] gnu: Add node-once.
Date: Fri, 9 Apr 2021 23:10:18 +0100 [thread overview]
Message-ID: <20210409221018.44513-1-noisytoot@disroot.org> (raw)
* gnu/packages/node-xyz.scm (node-once): 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 f401380310..ee0b5e62d9 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -298,3 +298,33 @@ function with browser support.")
(synopsis "Callback wrapping utility")
(description "@code{wrappy} is a utility for Node.js to wrap callbacks.")
(license license:isc)))
+
+(define-public node-once
+ (package
+ (name "node-once")
+ (version "1.4.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/isaacs/once")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1z8dcbf28dqdcp4wb0c53wrs90a07nkrax2c9kk26dsk1dhrnxav"))))
+ (build-system node-build-system)
+ (arguments
+ '(#:tests? #f ; FIXME: Tests depend on node-tap
+ #:phases
+ (modify-phases %standard-phases
+ ;; If configure existed it would fail due to tap being missing,
+ ;; as we do not have tap packaged yet, tap is used for tests.
+ ;; This package still works as a dependency of glob and inflight,
+ ;; which are being packaged.
+ (delete 'configure))))
+ (inputs
+ `(("node-wrappy" ,node-wrappy)))
+ (home-page "https://github.com/isaacs/once")
+ (synopsis "Node.js module to only run a function once")
+ (description "@code{once} is a Node.js module to only run a function once.")
+ (license license:isc)))
--
2.30.2
next reply other threads:[~2021-04-09 22:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-09 22:10 Ron Nazarov via Guix-patches via [this message]
2021-05-04 21:14 ` bug#47682: [PATCH v2] gnu: Add node-once Tobias Geerinckx-Rice via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210409221018.44513-1-noisytoot@disroot.org \
--to=guix-patches@gnu.org \
--cc=47682@debbugs.gnu.org \
--cc=noisytoot@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.