From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UPujBvYJkWGLYgAAgWs5BA (envelope-from ) for ; Sun, 14 Nov 2021 14:07:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EL8uAvYJkWGADAAAbx9fmQ (envelope-from ) for ; Sun, 14 Nov 2021 13:07:02 +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 C201D35F3D for ; Sun, 14 Nov 2021 14:07:01 +0100 (CET) Received: from localhost ([::1]:53804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmFDo-0003yC-VV for larch@yhetil.org; Sun, 14 Nov 2021 08:07:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmFCw-0002uS-C8 for guix-patches@gnu.org; Sun, 14 Nov 2021 08:06:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmFCt-0002I9-M4 for guix-patches@gnu.org; Sun, 14 Nov 2021 08:06:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmFCt-00052q-HC for guix-patches@gnu.org; Sun, 14 Nov 2021 08:06:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH 08/11] gnu: Add node-nan. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 Nov 2021 13:06: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: Philip McGrath Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163689511319278 (code B ref 51838); Sun, 14 Nov 2021 13:06:03 +0000 Received: (at 51838) by debbugs.gnu.org; 14 Nov 2021 13:05:13 +0000 Received: from localhost ([127.0.0.1]:49423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmFC4-00050f-Ub for submit@debbugs.gnu.org; Sun, 14 Nov 2021 08:05:13 -0500 Received: from mail-qt1-f172.google.com ([209.85.160.172]:37844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmFC2-0004zd-23 for 51838@debbugs.gnu.org; Sun, 14 Nov 2021 08:05:10 -0500 Received: by mail-qt1-f172.google.com with SMTP id f20so12719503qtb.4 for <51838@debbugs.gnu.org>; Sun, 14 Nov 2021 05:05: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=u2xClz8o/NWA/XyzlTiRcbhKjw1oPv9cLFZsxKjf9j4=; b=PUFTC+lYWVvu/I99ZbqpJrUJsNw0QYzTbgw3A8Uu4nl6V5Bxw2lk19E4QU/thHUVEr 6/05bk3sfht/EIRS72LhZfi3LsdTq2s2PD5zwCc0uUuglsrmmkEax0cnB2cwJqRp0M1s swPm0EUGWcZCh/XhSTwpe3u8cCDu8288jBqEqXeQY5orPb6afb7b2i4K80q/TJxYYy2m c2t79mQyOT/uwQC97CXCNADhxA0ZRA2OgSlPLdLZWo3HteqVDjmZs6RVgl2eEvqsmYNs Wm4nQBQK6/UtgQmuPCia9A0EUcrfzOCDZeWAWEeO5Ordy0RqEDKTBfDEx5iilK0O4dxD 4vgQ== 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=u2xClz8o/NWA/XyzlTiRcbhKjw1oPv9cLFZsxKjf9j4=; b=RUWbs22LtNpaEWJNd90ImjPD6jOh8eQkykk7zZSIB3nbSLoUPSyOeCyfLQ57fVNQ2p hx9xwjYPRBX0yAvNOLP5fqABIzVENe9OBhoK+jIsNiOFOkodxMGfHsuAN5OTan61+IOP adifYNDbbCTD5R1E5C9Q/zrYrBrZgJNdvRBgMHzp1mgRZ8vJnNW1EvL6yvX0zo7+Aod2 47kqAzY/6LWgxsw0yrb7fLdamE3b5qr11LOSVMwDj65nUC5/8OWGKuam/Sp3Kg6+2NlC aaDKaqT9qrhhLCV165/5gkE/eU364810N582ceZIYOLynXshDnPjT77cO82eTJCd3rc0 xXAw== X-Gm-Message-State: AOAM533WJXdJjui0pTTO7+JoiErIbAu9tsR2NG+Ed25vzGcpKyA6iDgX Ynnz0qlpGly9H2o7oGqYfgIRiJCpMEITuHaZ X-Google-Smtp-Source: ABdhPJwj5grvZBGH/pq6LptjLFm6kVjnn+VOFA26FBebiSSiZOu4eApNImuyOf23itfAeKcr+yA+rg== X-Received: by 2002:a05:622a:1708:: with SMTP id h8mr2831865qtk.318.1636895104524; Sun, 14 Nov 2021 05:05:04 -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 j20sm4095878qko.117.2021.11.14.05.05.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Nov 2021 05:05:04 -0800 (PST) From: Philip McGrath Date: Sun, 14 Nov 2021 08:04:06 -0500 Message-Id: <20211114130409.49241-7-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211114130409.49241-1-philip@philipmcgrath.com> References: <20211114125830.45427-1-philip@philipmcgrath.com> <20211114130409.49241-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636895221; 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=u2xClz8o/NWA/XyzlTiRcbhKjw1oPv9cLFZsxKjf9j4=; b=KrRhKgxWLTNx3/yxH7rB2ar1pLZXeBvloNRphB7IzTZu0/D+W6DFLTA+/7zJzoOgocGcLr oQf2lM/bCz4wnzNMEd/ELj+1EjJABRdmKffTBdkDtY0/VywD4l3xRePBP1wJU++eQDP/gd TBebk3DQvpazHnV6oKALS9S1p6IWG4NMW8G5eJgGm7CPTzf70mVyY7dB4sCWa2n73rauoo gp5hdt+NTvI0UOojqLxc8dS+dxCGn7kmLhlIMUMeaR8JSQoCT+A0c0pPf81nnhxYOSmauq tb3FgacvgJpf6eiRE3k4ZjwL7VBBe8h21aBLKtShy1xCpxRfWJ20eyao211LPA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636895221; a=rsa-sha256; cv=none; b=QgNo6Bsp1dHZJ5bn3dN0QFbH7iYcPI5NRiEHU7HYG4WS1kGlpYM3QtNExo4eeevTa6/1mE bgKn5MACLaFTYZz/cxCu8ka1+8Kxw5mNuzQlWJkicTnVgZ2854DeDkitUMBZ/rqsKB7dI5 ILSBrfL+8WyNOS2PWhjVWh/0oInyBonsBrQpfKfnIGXHk+gfcuwSbH95Apk0BWtyr9vSn6 FxhyOnzR5+qjnolSeAeTLXka8iawiLkVfzf/YgCx785z7jWtFEExqPJTd8aWszqBVfgjYd xVQ6CUIlX43hioEO2GI8ana52Wcw+0sVohbiYN80mOBs1xDKa0UQaUwhCLLNjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=PUFTC+lY; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=PUFTC+lY; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: C201D35F3D X-Spam-Score: 3.16 X-Migadu-Scanner: scn1.migadu.com X-TUID: vK8/vzJWtXUq * gnu/packages/node-xyz.scm (node-nan): New variable. --- gnu/packages/node-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index d0b4d1fa98..29ad14f810 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -549,3 +549,44 @@ (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? + ;; We can't run the npm-driven tests, + ;; but a number of C++ tests do run anyway: + #f + #:phases + (modify-phases %standard-phases + ;; Ignore missing devDependencies (e.g. "tap", for tests): + (delete 'configure)))) + (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