summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2022-07-20 12:16:36 +0200
committerGuix Patches Tester <>2022-07-20 11:20:21 +0100
commit2eb7ab2b6aa0fd54345e8ed22ad086be16a9b7ca (patch)
treecf45b877e18ee3749464413bee279dd7b7bb5509
parentdbf09879710aefe6cedd9ed975cc2b79df01b755 (diff)
downloadguix-patches-2eb7ab2b6aa0fd54345e8ed22ad086be16a9b7ca.tar
guix-patches-2eb7ab2b6aa0fd54345e8ed22ad086be16a9b7ca.tar.gz
gnu: Add node-minimist.
* gnu/packages/node-xyz.scm (node-minimist): New variable.
-rw-r--r--gnu/packages/node-xyz.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 9dcb5c3d16..1e0780cd61 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -176,6 +176,35 @@ user-land JavaScript.")
random number generator.")
(license license:bsd-3)))
+(define-public node-minimist
+ (package
+ (name "node-minimist")
+ (version "1.2.6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/substack/minimist")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0mxj40mygbiy530wskc8l28wxb6fv3f8vrhpwjgprymhpgbaac7d"))))
+ (build-system node-build-system)
+ (arguments
+ '(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'configure
+ (lambda* (#:key inputs #:allow-other-keys)
+ (invoke "npm" "--offline"
+ "--ignore-scripts" "install" "--production"))))))
+ (home-page "https://github.com/substack/minimist")
+ (synopsis "Parse CLI arguments in Javascript")
+ (description "This package can scan for CLI flags and arguments in
+Javascript.")
+ (license license:expat)))
+
(define-public node-oop
;; No releases, last commit was February 2013.
(let ((commit "f9d87cda0958886955c14a0a716e57021ed295dc")