[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/10: gnu: Add node-once.
From: |
guix-commits |
Subject: |
10/10: gnu: Add node-once. |
Date: |
Tue, 4 May 2021 17:13:58 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 2959adef94ba8684127bb995ce26b3234b4d457d
Author: Ron Nazarov <noisytoot@disroot.org>
AuthorDate: Fri Apr 9 23:10:18 2021 +0100
gnu: Add node-once.
* gnu/packages/node-xyz.scm (node-once): New variable.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
---
gnu/packages/node-xyz.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index f401380..27a76f5 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -298,3 +298,35 @@ 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
+ ;; The default configure phase fails due to tap being missing, as we
do
+ ;; not have tap packaged yet. It is used only for tests. This
package
+ ;; still works as a dependency of node-glob and node-inflight.
+ (delete 'configure))))
+ (inputs
+ `(("node-wrappy" ,node-wrappy)))
+ (home-page "https://github.com/isaacs/once")
+ (synopsis "Node.js module to call a function only once")
+ (description
+ "@code{once} is a Node.js module to call a function exactly one time.
+Subsequent calls will either return the cached previous value or throw an error
+if desired.")
+ (license license:isc)))
- branch master updated (aa7eeab -> 2959ade), guix-commits, 2021/05/04
- 03/10: tests: go: Fix typos in test descriptions., guix-commits, 2021/05/04
- 05/10: gnu: rasdaemon: Edit synopsis & description., guix-commits, 2021/05/04
- 01/10: gnu: go-gopkg-in-go-playground-assert-v1: Fix typo in description., guix-commits, 2021/05/04
- 02/10: doc: Fix typos., guix-commits, 2021/05/04
- 04/10: gnu: java-javaparser: Upgrade os.name to ‘Guix’., guix-commits, 2021/05/04
- 06/10: doc: Fix typo and use @acronym for RAS., guix-commits, 2021/05/04
- 07/10: gnu: powertop: Update to 2.14., guix-commits, 2021/05/04
- 08/10: gnu: knockd: Update to 0.8., guix-commits, 2021/05/04
- 09/10: gnu: knockd: Omit duplicate COPYING copy., guix-commits, 2021/05/04
- 10/10: gnu: Add node-once.,
guix-commits <=