From patchwork Sat Jan 8 08:42:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 36146 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 928F727BBEA; Sat, 8 Jan 2022 08:56:52 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 56A4827BBE9 for ; Sat, 8 Jan 2022 08:56:52 +0000 (GMT) Received: from localhost ([::1]:35982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n67Wt-0004Zc-Hk for patchwork@mira.cbaines.net; Sat, 08 Jan 2022 03:56:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n67MR-0003nG-VP for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53497) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n67MR-0004ch-Nb for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n67MR-0000v5-LL for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v9 22/41] gnu: Add node-nan. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 Jan 2022 08:46:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Philip McGrath , Pierre Langlois , Liliana Marie Prikler , Leo Famulari , Jelle Licht Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16416315343350 (code B ref 51838); Sat, 08 Jan 2022 08:46:03 +0000 Received: (at 51838) by debbugs.gnu.org; 8 Jan 2022 08:45:34 +0000 Received: from localhost ([127.0.0.1]:46367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n67Lm-0000rS-Hg for submit@debbugs.gnu.org; Sat, 08 Jan 2022 03:45:34 -0500 Received: from mail-qt1-f181.google.com ([209.85.160.181]:42807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n67Lk-0000r1-Vp for 51838@debbugs.gnu.org; Sat, 08 Jan 2022 03:45:21 -0500 Received: by mail-qt1-f181.google.com with SMTP id y17so8043478qtx.9 for <51838@debbugs.gnu.org>; Sat, 08 Jan 2022 00:45:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=on9vLZvOEH0EfV2OEpp25txdvsjQiCrr22rTOIvDNmQ=; b=hEf5ECiJW67VPR8NYY36SzWbV678CWT/BnoZxOpnCVjz84QoDRVRfUHBl7yMMRzeYv oZn+GvwJ5t0zc9cnk5KV9eizq3ylWco07rQoEN8pVcCLfwIRVHIZ0dHgbR9JnmoWWR5g vynBuDpJ9JbK2t5c49/12o99b8BRDXmiX2cu0yXksfmRBG8XnlGBdYLcX21EYOdhCIPi db6o892blJ4Ul0WMb9t5Ol9sM7ysHWYxjGeG5aQ1V5VeZ/7zNrrhbe2+OT8Jl77/lE3h pSotgsaPLnKt6YoSpdSRPRN3wTECQsGd4v72cGMaiHbSN1xpUW040Ocr47eOxNkZMW4W 79qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=on9vLZvOEH0EfV2OEpp25txdvsjQiCrr22rTOIvDNmQ=; b=pEHZIkcSNlsnNtEWSPW714Wd+jJ2ry7gh7dYd+PysHxO11NgAqsdZXGXtOPTpW5grT 4HheveT8yzPUZChxEujz8R9ugmqbtIZvw68xhBN8yLJ1wKsIkgLEtR/fM7svk+o4S3aR XRVx9L0hGf8zJ0BDZscnGG5APIOJ/UyOMkygBi7KaTpMXJbLhvTK0AszkjT3eKGOOmCU dlgyZnbecguVZg08MM2cb2/4QT7GJTkybx3LjeetkFCxoSMAOqjRImVMUhazQpRg7hKC b4zJAAaa6hgSaYQ7aPM09wOQm7jawzpieixcnaNoNZipfZfWiiUSK/ULZ83hnRP6YMMi jLAg== X-Gm-Message-State: AOAM533qH0tFuUhwQc4fo7/tlNWMCHmv1mQ56I9YR9WFdb/Y5yjNEk+Q 5z7ADWXUnMlc2vIi0HrzSmDgdHvIlEBkQmH3 X-Google-Smtp-Source: ABdhPJztL645SjBgdCXKkL3ZGtLfRcLF2i/Ks29aqjBW17E8W5yPvoo4ji46raJC8+c+nyiWgD5h+g== X-Received: by 2002:ac8:58d4:: with SMTP id u20mr54553060qta.49.1641631515393; Sat, 08 Jan 2022 00:45:15 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with UTF8SMTPSA id r24sm668718qtp.38.2022.01.08.00.45.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 Jan 2022 00:45:15 -0800 (PST) From: Philip McGrath Date: Sat, 8 Jan 2022 03:42:10 -0500 Message-Id: <20220108084229.362642-23-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220108084229.362642-1-philip@philipmcgrath.com> References: <64e08d3a1838ed8507f33fae895545372960522f.camel@gmail.com> <7b04af28bbd57c67093ce8f33a648efec89693bd.camel@gmail.com> <441bfeb0-eb6e-81f6-488b-cdf1b09a78ef@philipmcgrath.com> <20220108084229.362642-1-philip@philipmcgrath.com> MIME-Version: 1.0 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-nan): New variable. --- gnu/packages/node-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index b08609e8b0..0e05e938bf 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -571,3 +571,46 @@ (define-public node-irc (description "@code{node-irc} is an IRC client library for Node.js. It has functions for joining, parting, talking, and many other IRC commands.") (license license:gpl3+))) + +(define-public node-nan + (package + (name "node-nan") + (version "2.15.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nodejs/nan") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "18xslh9va5ld872scrp5y4251ax9s3c6qh0lnl1200lpzbsxy7yd")))) + (build-system node-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'patch-dependencies 'delete-dependencies + (lambda args + (delete-dependencies + '("bindings" + "commander" + "glob" + "request" + "node-gyp" ;; would be needed for tests + "tap" + "xtend"))))) + ;; tests need tap and other dependencies + #:tests? #f)) + (inputs + (list node-readable-stream)) + (home-page "https://github.com/nodejs/nan") + (synopsis "Native Abstractions for Node.js") + (description "Native Abstractions for Node.js (``NaN'') provides a header +file filled with macro and utility goodness for making add-on development for +Node.js easier across versions. The goal of this project is to store all logic +necessary to develop native Node.js addons without having to inspect +@code{NODE_MODULE_VERSION} and get yourself into a macro-tangle. + +This project also contains some helper utilities that make addon development a +bit more pleasant.") + (license license:expat)))