guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 9ce61658d19acc4d308355763aace9bbcb3907d8
Author: Daniel Khodabakhsh <[email protected]>
AuthorDate: Tue Jun 24 08:37:22 2025 -0700
gnu: Add node-has-flag.
* gnu/packages/node-xyz.scm (node-has-flag): New variable.
Change-Id: I75d3d85928e8f3cd884ce9dc3a6c20927f62965a
Signed-off-by: Andreas Enge <[email protected]>
---
gnu/packages/node-xyz.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 64b182d017..d82a888160 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -457,6 +457,31 @@ projects under a given directory. It uses the gradle
wrapper to execute the
clean task of each project.")
(license license:expat)))
+(define-public node-has-flag
+ (package
+ (name "node-has-flag")
+ (version "3.0.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sindresorhus/has-flag")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0wz3ihagci5nk2fawbw2pfprnqbhlvxi79ikvrn4kkhh3vfn85q2"))))
+ (build-system node-build-system)
+ (arguments (list
+ #:tests? #f ; FIXME: Tests require 'xo' and 'ava'.
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'patch-dependencies 'modify-package (lambda _
+ (modify-json
+ (delete-dev-dependencies)))))))
+ (synopsis "Check if argv has a specific flag")
+ (description "Check if argv has a specific flag
+Correctly stops looking after an -- argument terminator.")
+ (home-page (git-reference-url (origin-uri source)))
+ (license license:expat)))
+
(define-public node-ieee754
(package
(name "node-ieee754")