[PATCH 7/9] gnu: Add node-minimist.

DoneSubmitted by Nicolas Graves.
Details
3 participants
  • Liliana Marie Prikler
  • Marius Bakke
  • Nicolas Graves
Owner
unassigned
Severity
normal
Merged with
N
N
Nicolas Graves wrote on 14 Jun 11:49 +0200
(address . guix-patches@gnu.org)(name . Nicolas Graves)(address . ngraves@ngraves.fr)
20220614094954.15197-7-ngraves@ngraves.fr
* gnu/packages/node-xyz.scm (node-minimist): New variable.
---
gnu/packages/node-xyz.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)

Toggle diff (43 lines)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index aa838108ad..8ec014eee8 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -208,6 +208,36 @@ (define-public node-mersenne
 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
+     '(#:phases
+       (modify-phases %standard-phases
+         (delete 'check)
+         (replace 'configure
+           (lambda* (#:key inputs #:allow-other-keys)
+             (invoke (string-append (assoc-ref inputs "node") "/bin/npm")
+                     "--offline" "--ignore-scripts" "install" "--production")
+             #t)))))
+    (home-page "https://github.com/substack/minimist")
+    (synopsis "Quickly scan for CLI flags and arguments in Javascript")
+    (description "This package allows to Quickly 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")
-- 
2.36.1
L
L
Liliana Marie Prikler wrote on 15 Jun 11:21 +0200
(address . control@debbugs.gnu.org)
c511c7cd5bad5cf933cfee73d92d8253d8b3c9ef.camel@ist.tugraz.at
merge 55958 55959 55960 55961 55962 55963 55964 55965 55966
thanks
M
M
Marius Bakke wrote on 23 Jun 23:14 +0200
(address . 55963@debbugs.gnu.org)(name . Nicolas Graves)(address . ngraves@ngraves.fr)
87wnd7qdza.fsf@gnu.org
Nicolas Graves via Guix-patches via <guix-patches@gnu.org> skriver:

Toggle quote (40 lines)
> * gnu/packages/node-xyz.scm (node-minimist): 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 aa838108ad..8ec014eee8 100644
> --- a/gnu/packages/node-xyz.scm
> +++ b/gnu/packages/node-xyz.scm
> @@ -208,6 +208,36 @@ (define-public node-mersenne
> 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
> + '(#:phases
> + (modify-phases %standard-phases
> + (delete 'check)
> + (replace 'configure
> + (lambda* (#:key inputs #:allow-other-keys)
> + (invoke (string-append (assoc-ref inputs "node") "/bin/npm")
> + "--offline" "--ignore-scripts" "install" "--production")
> + #t)))))
> + (home-page "https://github.com/substack/minimist")
> + (synopsis "Quickly scan for CLI flags and arguments in Javascript")

Perhaps "Parse CLI arguments JavaScript"?

Toggle quote (3 lines)
> + (description "This package allows to Quickly scan for CLI flags and
> +arguments in Javascript.")

s/allows to Quickly/allows scanning/
-----BEGIN PGP SIGNATURE-----

iIUEARYKAC0WIQRNTknu3zbaMQ2ddzTocYulkRQQdwUCYrTXuQ8cbWFyaXVzQGdu
dS5vcmcACgkQ6HGLpZEUEHfHVwD/TCtCs/JK+1SjC+25xU7k4sPO66ktXnMGvgbb
w4JDdpkBAKl3mWbxbsSDZmHMQSI4dZqz4Op5hh72Vr3jIlIDw4wK
=SPJ6
-----END PGP SIGNATURE-----

N
N
Nicolas Graves wrote on 20 Jul 12:16 +0200
[PATCH] gnu: Add node-minimist.
(address . 55963@debbugs.gnu.org)(address . ngraves@ngraves.fr)
20220720101636.16252-1-ngraves@ngraves.fr
* gnu/packages/node-xyz.scm (node-minimist): New variable.
---
gnu/packages/node-xyz.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)

Toggle diff (42 lines)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index f124e2ebfb..ff3bd9084f 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -207,6 +207,35 @@ (define-public node-mersenne
 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")
-- 
2.37.0
?
Your comment

This issue is archived.

To comment on this conversation send email to 55963@debbugs.gnu.org