From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EOeWNTYxEGWNVwEA9RJhRA:P1 (envelope-from ) for ; Sun, 24 Sep 2023 14:53:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EOeWNTYxEGWNVwEA9RJhRA (envelope-from ) for ; Sun, 24 Sep 2023 14:53:10 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8A4855D615 for ; Sun, 24 Sep 2023 14:53:10 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695559990; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=NRxqgW9bGwlqTLUcqYfVn2s058OvciBx21ehy40sZwE=; b=KJ9LIbXdpgfX1na0ZfCAU72L/TP/FKDVBTtQDCXWzEv4Mh4+Bld3GSkDuqvRX2RqBeNy18 Y2+BaF0RB91JNblzb7OMP/ChOm2rzcUARu3ovMP9S3YD+LZQKmOoF4AuTqfyuBDzSde99a 1m2gZ4+Gvgn3kKlTnGsKwwjxMK95MHbAlxVJpKK/5Qh7yzM2QAkEy/ZcFkBnfBwHuQgVsi Ie5N/+yFWy6M/TA/DZoQAHtwgp4WXrbTBKKlnd4w9seJ6l2Dnxg8EgP3itKfSuojhtcEL8 JoaIYxFbXY0wqrGzMwK/kTVARxB4DjNn6aabi8w6Gv5CBvgtsQ0TtyxTARZXww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695559990; a=rsa-sha256; cv=none; b=m0LId7e/ugIP/pm3Eh1EXeDo3jXMmsApBSHgC7TrBuTMwrCyZ6p2+cFgxHlXh1o6qPS3hn y5fTLjWD0VGvJSekYllW61Hf5u0vU3kd9BJKyzHus/rbgV8+bb0Qxx+Kf4Izl+2MTQelLX QU5yDYi6lgsmKhETpGXPE1YUG1ENH8uzLppJ+TYqmerJ/6WKLZDTAFvmiBBYLOfI214FS4 4MxRPajyGorC5nFrOVxx0pRULLWdMaVxB5HLxkPjH8SHL0t2sa3i0XqIEUXG5h94Lnon1+ nWoVSoYlapoAFwmZk4yahzzxEviTi0PYtdgjaNxU5+zoL4CQcYKM4Gdmv40HGg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qkOai-0006eJ-4V; Sun, 24 Sep 2023 08:52:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qkOaa-0006Xv-7E for guix-patches@gnu.org; Sun, 24 Sep 2023 08:51:57 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qkOaY-0003X0-9b for guix-patches@gnu.org; Sun, 24 Sep 2023 08:51:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qkOak-0003Co-2E for guix-patches@gnu.org; Sun, 24 Sep 2023 08:52:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66180] [PATCH 11/19] gnu: node-addon-api: Move package in alphabetical order. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 24 Sep 2023 12:52:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66180 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66180@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 66180-submit@debbugs.gnu.org id=B66180.169555991512172 (code B ref 66180); Sun, 24 Sep 2023 12:52:06 +0000 Received: (at 66180) by debbugs.gnu.org; 24 Sep 2023 12:51:55 +0000 Received: from localhost ([127.0.0.1]:41296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkOaY-0003AA-GL for submit@debbugs.gnu.org; Sun, 24 Sep 2023 08:51:54 -0400 Received: from 11.mo584.mail-out.ovh.net ([46.105.34.195]:51331) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkOa8-00037h-HU for 66180@debbugs.gnu.org; Sun, 24 Sep 2023 08:51:30 -0400 Received: from director8.ghost.mail-out.ovh.net (unknown [10.109.146.166]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id 8B9B1282D4 for <66180@debbugs.gnu.org>; Sun, 24 Sep 2023 12:51:15 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-q826c (unknown [10.110.115.73]) by director8.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 44E491FDB2; Sun, 24 Sep 2023 12:51:15 +0000 (UTC) Received: from ngraves.fr ([37.59.142.109]) by ghost-submission-6684bf9d7b-q826c with ESMTPSA id VSlyDsMwEGWXcAcAor7qWw (envelope-from ); Sun, 24 Sep 2023 12:51:15 +0000 X-OVh-ClientIp: 81.67.140.142 Date: Sun, 24 Sep 2023 14:50:37 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: <28369246c2163cab7579f033071c85fbc6d0768b.1695559845.git.ngraves@ngraves.fr> References: <28369246c2163cab7579f033071c85fbc6d0768b.1695559845.git.ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 3513652134940697314 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrudelvddgheeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdehleeiffehtedvlefhffffjeefgfduhfetkeevheeiteduiedugfekuedtheejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegtddrudegvddpfeejrdehledrudegvddruddtleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepieeiudektdesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekgedpmhhouggvpehsmhhtphhouhht X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.20 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 8A4855D615 X-Spam-Score: -3.20 X-TUID: 273hlvO9Spdq * 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 }) 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 }) are not -ABI-stable across Node.js major versions.") - (license license:expat))) - (define-public node-sqlite3 (package (name "node-sqlite3") -- 2.41.0