From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
To: 66180@debbugs.gnu.org
Cc: ngraves@ngraves.fr
Subject: [bug#66180] [PATCH 11/19] gnu: node-addon-api: Move package in alphabetical order.
Date: Sun, 24 Sep 2023 14:50:37 +0200 [thread overview]
Message-ID: <abfc4223a068ccd162cb28d78bfdb427e673a02b.1695559845.git.ngraves@ngraves.fr> (raw)
In-Reply-To: <28369246c2163cab7579f033071c85fbc6d0768b.1695559845.git.ngraves@ngraves.fr>
* gnu/packages/node-xyz.scm (node-addon-api): Move package in alphabetical order.
---
gnu/packages/node-xyz.scm | 164 +++++++++++++++++++-------------------
1 file changed, 82 insertions(+), 82 deletions(-)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index dc7502d76a..0ef691e0e6 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -107,6 +107,88 @@ (define-public node-acorn
architecture supporting plugins.")
(license license:expat)))
+(define-public node-addon-api
+ (package
+ (name "node-addon-api")
+ (version "4.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nodejs/node-addon-api")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1bhvfi2m9nxfz418s619914vmidcnrzbjv6l9nid476c3zlpazch"))))
+ (inputs
+ (list python node-safe-buffer))
+ (build-system node-build-system)
+ (arguments
+ `(#:modules
+ ((guix build node-build-system)
+ (srfi srfi-1)
+ (ice-9 match)
+ (guix build utils))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'patch-dependencies 'delete-dependencies
+ (lambda args
+ (delete-dependencies
+ `("benchmark"
+ "bindings"
+ "clang-format"
+ "eslint"
+ "eslint-config-semistandard"
+ "eslint-config-standard"
+ "eslint-plugin-import"
+ "eslint-plugin-node"
+ "eslint-plugin-promise"
+ "fs-extra"
+ "path"
+ "pre-commit"))))
+ (add-after 'unpack 'skip-js-tests
+ ;; We can't run the js-based tests,
+ ;; but we can still do the C++ parts
+ (lambda args
+ (define new-test-script
+ "echo stopping after pretest on Guix")
+ (with-atomic-json-file-replacement "package.json"
+ (match-lambda
+ (('@ . pkg-meta-alist)
+ (cons
+ '@
+ (map (match-lambda
+ (("scripts" '@ . scripts-alist)
+ `("scripts" @ ,@(map (match-lambda
+ (("test" . _)
+ (cons "test"
+ new-test-script))
+ (other
+ other))
+ scripts-alist)))
+ (other
+ other))
+ pkg-meta-alist))))))))))
+ (home-page "https://github.com/nodejs/node-addon-api")
+ (synopsis "Node.js API (Node-API) header-only C++ wrappers")
+ (description "This module contains header-only C++ wrapper classes which
+simplify the use of the C based Node-API provided by Node.js when using C++.
+It provides a C++ object model and exception handling semantics with low
+overhead.
+
+Node-API is an ABI stable C interface provided by Node.js for building native
+addons. It is intended to insulate native addons from changes in the
+underlying JavaScript engine and allow modules compiled for one version to run
+on later versions of Node.js without recompilation. The @code{node-addon-api}
+module, which is not part of Node.js, preserves the benefits of the Node-API
+as it consists only of inline code that depends only on the stable API
+provided by Node-API.
+
+It is important to remember that @emph{other} Node.js interfaces such as
+@code{libuv} (included in a project via @code{#include <uv.h>}) are not
+ABI-stable across Node.js major versions.")
+ (license license:expat)))
+
(define-public node-bindings
(package
(name "node-bindings")
@@ -921,88 +1003,6 @@ (define-public node-wrappy
(description "@code{wrappy} is a utility for Node.js to wrap callbacks.")
(license license:isc)))
-(define-public node-addon-api
- (package
- (name "node-addon-api")
- (version "4.2.0")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/nodejs/node-addon-api")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1bhvfi2m9nxfz418s619914vmidcnrzbjv6l9nid476c3zlpazch"))))
- (inputs
- (list python node-safe-buffer))
- (build-system node-build-system)
- (arguments
- `(#:modules
- ((guix build node-build-system)
- (srfi srfi-1)
- (ice-9 match)
- (guix build utils))
- #:phases
- (modify-phases %standard-phases
- (add-after 'patch-dependencies 'delete-dependencies
- (lambda args
- (delete-dependencies
- `("benchmark"
- "bindings"
- "clang-format"
- "eslint"
- "eslint-config-semistandard"
- "eslint-config-standard"
- "eslint-plugin-import"
- "eslint-plugin-node"
- "eslint-plugin-promise"
- "fs-extra"
- "path"
- "pre-commit"))))
- (add-after 'unpack 'skip-js-tests
- ;; We can't run the js-based tests,
- ;; but we can still do the C++ parts
- (lambda args
- (define new-test-script
- "echo stopping after pretest on Guix")
- (with-atomic-json-file-replacement "package.json"
- (match-lambda
- (('@ . pkg-meta-alist)
- (cons
- '@
- (map (match-lambda
- (("scripts" '@ . scripts-alist)
- `("scripts" @ ,@(map (match-lambda
- (("test" . _)
- (cons "test"
- new-test-script))
- (other
- other))
- scripts-alist)))
- (other
- other))
- pkg-meta-alist))))))))))
- (home-page "https://github.com/nodejs/node-addon-api")
- (synopsis "Node.js API (Node-API) header-only C++ wrappers")
- (description "This module contains header-only C++ wrapper classes which
-simplify the use of the C based Node-API provided by Node.js when using C++.
-It provides a C++ object model and exception handling semantics with low
-overhead.
-
-Node-API is an ABI stable C interface provided by Node.js for building native
-addons. It is intended to insulate native addons from changes in the
-underlying JavaScript engine and allow modules compiled for one version to run
-on later versions of Node.js without recompilation. The @code{node-addon-api}
-module, which is not part of Node.js, preserves the benefits of the Node-API
-as it consists only of inline code that depends only on the stable API
-provided by Node-API.
-
-It is important to remember that @emph{other} Node.js interfaces such as
-@code{libuv} (included in a project via @code{#include <uv.h>}) are not
-ABI-stable across Node.js major versions.")
- (license license:expat)))
-
(define-public node-sqlite3
(package
(name "node-sqlite3")
--
2.41.0
next prev parent reply other threads:[~2023-09-24 12:53 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-24 12:47 [bug#66180] [PATCH 00/19] Sort packages in node-xyz.scm Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 01/19] gnu: node-bindings: Move package in alphabetical order Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 02/19] gnu: node-util-deprecate: " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 03/19] gnu: node-once: " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 04/19] gnu: node-ieee754: " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 05/19] gnu: node-inherits: " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 06/19] gnu: node-safe-buffer: " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 07/19] gnu: node-string-decoder: " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 08/19] gnu: node-readable-stream: " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 09/19] gnu: node-irc and node-irc-colors: Move " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 10/19] gnu: node-nan: Move package " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` Nicolas Graves via Guix-patches via [this message]
2023-09-24 12:50 ` [bug#66180] [PATCH 12/19] gnu: node-sqlite3: " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 13/19] gnu: node-file-uri-to-path: " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 14/19] gnu: node-segfault-handler: " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 15/19] gnu: node-ms: " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 16/19] gnu: node-debug: " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 17/19] gnu: node-serialport packages: Move packages " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 18/19] gnu: node-semver: Move package " Nicolas Graves via Guix-patches via
2023-09-24 12:50 ` [bug#66180] [PATCH 19/19] gnu: packages: node-xyz: Add alphatical order header Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 01/20] gnu: node-bindings: Move package in alphabetical order Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 02/20] gnu: node-util-deprecate: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 03/20] gnu: node-once: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 04/20] gnu: node-ieee754: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 05/20] gnu: node-inherits: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 06/20] gnu: node-safe-buffer: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 07/20] gnu: node-string-decoder: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 08/20] gnu: node-readable-stream: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 09/20] gnu: node-irc and node-irc-colors: Move " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 10/20] gnu: node-nan: Move package " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 11/20] gnu: node-addon-api: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 12/20] gnu: node-sqlite3: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 13/20] gnu: node-file-uri-to-path: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 14/20] gnu: node-segfault-handler: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 15/20] gnu: node-ms: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 16/20] gnu: node-debug: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 17/20] gnu: packages: node-xyz: Add alphatical order header Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 18/20] gnu: node-semver: Move package in alphabetical order Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 19/20] gnu: node-path-key: " Nicolas Graves via Guix-patches via
2024-02-04 12:40 ` [bug#66180] [PATCH v2 20/20] gnu: node-serialport-*: Move packages " Nicolas Graves via Guix-patches via
2024-02-10 16:16 ` [bug#66180] [PATCH 00/19] Sort packages in node-xyz.scm Sharlatan Hellseher
2024-02-18 12:02 ` ngraves--- via Guix-patches via
2024-02-18 12:02 ` ngraves--- via Guix-patches via
2024-02-18 13:06 ` bug#66180: " Sharlatan Hellseher
2024-02-18 14:23 ` [bug#66180] " Nicolas Graves via Guix-patches via
2024-02-18 14:29 ` Nicolas Graves via Guix-patches via
2024-02-18 14:48 ` Sharlatan Hellseher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=abfc4223a068ccd162cb28d78bfdb427e673a02b.1695559845.git.ngraves@ngraves.fr \
--to=guix-patches@gnu.org \
--cc=66180@debbugs.gnu.org \
--cc=ngraves@ngraves.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.