From patchwork Thu Dec 30 07:44:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35817 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 71E4827BBEA; Thu, 30 Dec 2021 07:50:03 +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 2DE1E27BBE9 for ; Thu, 30 Dec 2021 07:50:03 +0000 (GMT) Received: from localhost ([::1]:36514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2qCI-0007UN-Aq for patchwork@mira.cbaines.net; Thu, 30 Dec 2021 02:50:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2qBP-0006JB-Gt for guix-patches@gnu.org; Thu, 30 Dec 2021 02:49:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2qBP-0006Lx-7W for guix-patches@gnu.org; Thu, 30 Dec 2021 02:49:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2qBP-000761-75 for guix-patches@gnu.org; Thu, 30 Dec 2021 02:49:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v7 22/41] gnu: Add node-nan. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Dec 2021 07:49:07 +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 , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.164085051627121 (code B ref 51838); Thu, 30 Dec 2021 07:49:07 +0000 Received: (at 51838) by debbugs.gnu.org; 30 Dec 2021 07:48:36 +0000 Received: from localhost ([127.0.0.1]:51204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2qAt-00073H-Rl for submit@debbugs.gnu.org; Thu, 30 Dec 2021 02:48:36 -0500 Received: from mail-ua1-f51.google.com ([209.85.222.51]:37573) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q9W-0006um-DW for 51838@debbugs.gnu.org; Thu, 30 Dec 2021 02:47:10 -0500 Received: by mail-ua1-f51.google.com with SMTP id o1so41252877uap.4 for <51838@debbugs.gnu.org>; Wed, 29 Dec 2021 23:47:10 -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=0Lh9qF80uvB9hxQKQrIXC7YsX0TKbp8jPgDqxgE80dM=; b=NISMPnVzc/xQb3GSE8bLaMlLfscTsfcnTlpyB4MFAKrqEPiStnUGFJbWXfboxoyVEk PfBM6pzFWR4MVnsHc6n+pCYy37+UiVBNkB2Fz8iDMLH/6L6gPuGryR04wBdYAidQ/kn3 u/lGGgSc0H2SheTR37jF+DqI0d5ioHubj01Fq5Mypv2roizB2M0KncgSNv2KPNrJ4/o3 pD05LIElAILBthKb3yxhp0IMC9WjkDlGFnLuzxzPFeV2TyeNqk6cCPD62mdoo6QWdVBY GXGdCJwRJ7n0EoyVwHzssbK1pwM/wVBTQyqMq94eveHFeRtCrx0SsTvGPDQpnE2SONVh XdSg== 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=0Lh9qF80uvB9hxQKQrIXC7YsX0TKbp8jPgDqxgE80dM=; b=tqmOqDu9YB4XuO3h74STEipQWusegZovQVvlSir1Jecawh+Aysg7v8q06hjwTTyKHa fXCuzUALfmxci1b2oVnpLVC05mYs568cV9ICMvLC5918a1nQ9qtbPyMbyJgW1FJC8gcM LK+l1PNjqe4TGN+OHPaGbeL0CA3CWawgUbRSlHMSkt3BncR3jqRUkUyTt+awTknBhuV2 EhYiZv0EMfo4ETH/Jw/3EuIImlXFk3ztF11dTR806mKv+nfLfuxWMUpa1jZQMycXvAER WIwMs3MFkmZ4Vkw2Ag+it4RJ9GlaQ4kVVk5QXboWWVqb+PwZojd3cYpyARtoex9rbQJx 0qoQ== X-Gm-Message-State: AOAM532fo+eG40AnEvU7IzR+4qEKTy+X1seMI6+SIfNVAWgO15qmXt36 oajo2t9BIaNBU13Se51FGyR7Ti25/KscovDn X-Google-Smtp-Source: ABdhPJyntgH+Cd0tWvOU4VaeitWEJ4pw+kXwxlwDSkmIpxEcBERt5mqYW+FvchW672QYJkkxgt8bAQ== X-Received: by 2002:a67:fb42:: with SMTP id e2mr8769393vsr.56.1640850424888; Wed, 29 Dec 2021 23:47:04 -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 n2sm4679809vkl.23.2021.12.29.23.47.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Dec 2021 23:47:04 -0800 (PST) From: Philip McGrath Date: Thu, 30 Dec 2021 02:44:37 -0500 Message-Id: <20211230074456.33433-23-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211230074456.33433-1-philip@philipmcgrath.com> References: <20211230073919.30327-1-philip@philipmcgrath.com> <20211230074456.33433-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 | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 87694c7d00..d8ce7248f8 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -549,3 +549,42 @@ (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 + `(#:absent-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)))