From patchwork Mon Dec 13 06:00:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 36163 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 B1F6F27BBEA; Mon, 13 Dec 2021 06:08:29 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 32C4727BBE9 for ; Mon, 13 Dec 2021 06:08:29 +0000 (GMT) Received: from localhost ([::1]:47984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweVg-00071r-9R for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSO-0003cb-Tg for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSO-0007Yf-KY for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSO-0002dL-F1 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 26/45] gnu: Add node-nan. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:04 +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.16393754809927 (code B ref 51838); Mon, 13 Dec 2021 06:05:04 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:40 +0000 Received: from localhost ([127.0.0.1]:53783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRk-0002Zc-Qk for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:39 -0500 Received: from mail-ua1-f54.google.com ([209.85.222.54]:36491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRX-0002XY-Ai for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:20 -0500 Received: by mail-ua1-f54.google.com with SMTP id r15so27349631uao.3 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:11 -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=Qj8jqvL8bD3SfwI3+xb/HfqVrKnenR1IhyjzHtHz2FQ=; b=jlqGfHJA/bIDfOcUjGRr25FdtF75cHWy2OS0jHkHv4oa9DXLDhXPwtn2Zz51pB6Rcd 3gXJYblRswADb8sDAxPV3ZpvjZQN64EBfqGTxRge9t3RYFpds2GnqbK8jNUyuZXhudl6 v95hdDNMqJlCWcU3ryeUxoCRf496Kna9gGG/+MMlsjxr3sEwSwC8/5BU0vg8+QmY26zL jESac2efY1p2+xG7wygTe3obP+XjCvc0B5MC51ubiJKBxf3P4Wkkk1vI7QUUNWH2pF0G G2YfsSBZREBmfeVrC2wHfY8Rj1zBNv2W3Y5Y+8+9hdzdvHV4yui2rsB5CVWPk2CkisDX QjUA== 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=Qj8jqvL8bD3SfwI3+xb/HfqVrKnenR1IhyjzHtHz2FQ=; b=mkUDBFBtCh6xJFaWhoyd7JCVXtaNFsW13TdMGmVLjCPEnpgfzrBTH9jjdN8Wo033mm mZno75xpdVFYNgKLiHXnyUtsotCJZH944N3NElODJ8CxMoNGzw4nPRyDhdY01f+msa9Z ee4NFsV++VjCWgWaf/OEG0y7q1N0n3T4cXmly4NW1Z5KupYudikIDPsSXGIsk0Yc6JqD UM9eYgfMQEc2hNWfuBZvNxuST3jB+KyPs1TCYKWGmKO+1mHumlMjL3IYfzi+11aCrO9R 15ywl/XT0xM1HDzojirt53aCrmandET0p5WLJY2tbA7RqkdmZ5oPgJuv4J39wvkyPS66 R5BQ== X-Gm-Message-State: AOAM530nFa0n8mLZgcUJLO6XDet3UyRWR0dFS0A5yx5EOAVuSWK0wMga hza/gVp0HfGK4Dj81zI5RTqzfiO0Mq+nAzG9y0k= X-Google-Smtp-Source: ABdhPJzW7AE6bUd9SKA6lfcWGj/KM0F4LXXOmBGGRDcfpnQNHlLhUc/XlimYdU67XqU3eE0214C69g== X-Received: by 2002:a67:de12:: with SMTP id q18mr26432290vsk.17.1639375445936; Sun, 12 Dec 2021 22:04:05 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id h10sm3571911vsl.34.2021.12.12.22.04.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:05 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:48 -0500 Message-Id: <20211213060107.129223-27-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-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 3e06413908..43cf9fe660 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -553,3 +553,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 + `(("readable-stream" ,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)))