From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eFz/A1x7mGG00QAAgWs5BA (envelope-from ) for ; Sat, 20 Nov 2021 05:36:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6HdVO1t7mGH1RgAAB5/wlQ (envelope-from ) for ; Sat, 20 Nov 2021 04:36:43 +0000 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 9C7492FA6E for ; Sat, 20 Nov 2021 05:36:39 +0100 (CET) Received: from localhost ([::1]:39622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moI7C-0005vT-Cq for larch@yhetil.org; Fri, 19 Nov 2021 23:36:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moI6e-00046C-7g for guix-patches@gnu.org; Fri, 19 Nov 2021 23:36:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moI6d-0007mR-JR for guix-patches@gnu.org; Fri, 19 Nov 2021 23:36:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moI6d-000825-Gs; Fri, 19 Nov 2021 23:36:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v2 23/26] gnu: Add node-nan. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: liliana.prikler@gmail.com, guix-patches@gnu.org Resent-Date: Sat, 20 Nov 2021 04:36: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: Liliana Marie Prikler X-Debbugs-Original-Xcc: Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163738293030802 (code B ref 51838); Sat, 20 Nov 2021 04:36:03 +0000 Received: (at 51838) by debbugs.gnu.org; 20 Nov 2021 04:35:30 +0000 Received: from localhost ([127.0.0.1]:41276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moI66-00080d-18 for submit@debbugs.gnu.org; Fri, 19 Nov 2021 23:35:30 -0500 Received: from mail-qt1-f176.google.com ([209.85.160.176]:46741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moI5C-0007tB-EX for 51838@debbugs.gnu.org; Fri, 19 Nov 2021 23:34:38 -0500 Received: by mail-qt1-f176.google.com with SMTP id m25so11393259qtq.13 for <51838@debbugs.gnu.org>; Fri, 19 Nov 2021 20:34:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=FlWDIicS3Q3yKZ0NRTXIzyixRW10lYA3Fo1yCGKwnBw=; b=Z1Oo3Zk4HbA4gQCzJggRx7pLd/38ruJqwT1IrwaBxFFQts4nezLX7eerLBjcxnMoUC +rCIS0mcK/4/oSHFvofbh4hgDDe0dVD5LQcPRHQMpYu/c2brt5pwtTlBm7xAdph68mmx 5Bx9i9K4he4nGGcRKb4/15ahJHNTU7kIYlXTFW3NuRKkDAOeeGw1BlLWdK15QxkDXOJC UzWKpfsT98x10Ig1puWY1C2Mj11AQMV8Ix1LzFKyvs+vl/wJDVab4wuKjkMVPQSTh72e w5IXY49vvt40iNqFMqWI8Pkz9XqPiOpCN2eeh/51owB0gWRrtvX6oHcHxQCiZ902tgyx fWPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FlWDIicS3Q3yKZ0NRTXIzyixRW10lYA3Fo1yCGKwnBw=; b=MEZVISFBtvgov+QXwDKQcaba1e7/C0a/tKrouhZiu6vXyUUZvydW0soa6vRtRdVR7j i2s3rpI8WuN+oC+yKgqm9zyZ8uftdkN16phLlKWt6aSsQty631jKhccSiRlcJ75CZRmV 33wXijKYgH3Hkk0y6l00Mfh0Phl4Z4ukgm+wdu0g2CtZpnEfd2rsmR+A7izmw1+Sx/Qs nXh5RaDOBjRSGYuA19CiS7WeD8G41KWJX+lmUDLzasHtUISvo7e2UQVS5hxILW4XbInI mH1pPWUEYzJPpS6bqJQR9Hu9Aq56bRwmVTtvAvQC0zxHZBJhnY9W/sx0XSc6/KxVqcs5 vjuA== X-Gm-Message-State: AOAM532Bc0zk8lne+ef963R9EepHzRzSII9k1GjyV+w0BUKk51xTNH0A yf6mqDBJUHzWJtbNoI+Ymajq2KNcoQ6sRNRi X-Google-Smtp-Source: ABdhPJxFBV1M9ghBI4LHTI/OaweXsZaPZ+THDXQZTzXx4y9kLI4F6D6Vl2k2BU32TQ34jjZ6YaCHbA== X-Received: by 2002:a05:622a:144f:: with SMTP id v15mr11815837qtx.340.1637382868937; Fri, 19 Nov 2021 20:34:28 -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 v1sm976061qtw.65.2021.11.19.20.34.28 for <51838@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Nov 2021 20:34:28 -0800 (PST) From: Philip McGrath Date: Fri, 19 Nov 2021 23:34:03 -0500 Message-Id: <20211120043406.952350-23-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211120043406.952350-1-philip@philipmcgrath.com> References: <5a04aa92-e80d-e11b-235c-b7f5e3a92d00@philipmcgrath.com> <20211120043406.952350-1-philip@philipmcgrath.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637382999; h=from:from:sender:sender: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:dkim-signature; bh=FlWDIicS3Q3yKZ0NRTXIzyixRW10lYA3Fo1yCGKwnBw=; b=Oq1t29Xwkg4eCGbIIy5u8bUK3YAv3udgJv2q//xhsgcJS759abgyuJZqhojlR9KBNFNWBg EOBh0+d6qZqGjkYGSg/XF3kbUztwlGM7un0/xAGvoUdQanAoGgEIky584sI/cwd5G40z3/ xTaxhbUKAvCRDlMQDEQo20MY8fF59yEK04bUQHlNVyoUec5PN/HVmlmJ6syT7rlhstpSbk o3WrJPp3njcMBm+8jGxuHRxti4BpzGqmEfYIv8GjucL1K9p3jYQB+XOK/1mzdZ0cNB/415 aegCRrmXUKn+S6DxrstVrFcJbsWBTDBhwvgzCGdpCV6c5ue/RBTpg+Qt2wt/AQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637382999; a=rsa-sha256; cv=none; b=dpE/6pyu5/rZDAKTPQV2pJhcxSs3/xC0fhYccOHbF6jPKFcNiFT6KvsTVMaZPFzZLIGzys kGwmLwAbujh0CXva9ND2U2q5ITthnnDv9SdzsvCdeBUhNHeFC2jxkSPXhW2zummbqWi7ro LJdrWYk09/mo0WA3Pl5ZdPT0l/9yneQPnNletW5styrUbdLgH81CHo4zjOB9fn67/Y2+j6 DIwish2XGC2uoFesMSD/TO62GU/B/IGEdQ3VmlcLt+vhkcQpcU2bmLQiWt4Y3NaT0dPnM9 SATK0XIRlX17KF/tWOJbo8F/JqHaHMxbVy9c0lMbXaxKENQHX/jd08ghIYxkFg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=Z1Oo3Zk4; 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" X-Migadu-Spam-Score: -0.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=Z1Oo3Zk4; 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" X-Migadu-Queue-Id: 9C7492FA6E X-Spam-Score: -0.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: kig0KXb9Af6V * gnu/packages/node-xyz.scm (node-nan): New variable. --- gnu/packages/node-xyz.scm | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 3e06413908..ed169c0778 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -553,3 +553,47 @@ (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 + `(#:tests? + ;; tests need tap and other dependencies + #f + #:absent-dependencies + '("bindings" + "commander" + "glob" + "request" + "node-gyp" ;; would be needed for tests + "tap" + "xtend"))) + (inputs + `(("readable-stream" ,node-readable-stream))) + (home-page "https://github.com/nodejs/nan") + (synopsis "Native Abstractions for Node.js") + (description "A header file filled with macro and utility goodness for +making add-on development for Node.js easier across versions 0.8, 0.10, 0.12, +1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 and 16. + +Thanks to the crazy changes in V8 (and some in Node core), keeping native +addons compiling happily across versions, particularly 0.10 to 0.12 to 4.0, is +a minor nightmare. 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))) -- 2.32.0