Subject: [bug#55963] [PATCH 7/9] gnu: Add node-minimist.

From: Marius Bakke <[email-masked]>
Date: Thu, 23 Jun 2022 23:14:33 +0200

Nicolas Graves via Guix-patches via <[email-masked]> skriver:

> * 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"?

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

s/allows to Quickly/allows scanning/