From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sNKXIXMWsWHQCwAAgWs5BA (envelope-from ) for ; Wed, 08 Dec 2021 21:32:51 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +Ps+HXMWsWEWGgAAbx9fmQ (envelope-from ) for ; Wed, 08 Dec 2021 20:32:51 +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 aspmx2.migadu.com (Postfix) with ESMTPS id 100892D871 for ; Wed, 8 Dec 2021 21:32:51 +0100 (CET) Received: from localhost ([::1]:51716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv3cQ-00035x-7D for larch@yhetil.org; Wed, 08 Dec 2021 15:32:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv3a0-0006lM-2H for guix-patches@gnu.org; Wed, 08 Dec 2021 15:30:21 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv3Zt-0000Ra-GV for guix-patches@gnu.org; Wed, 08 Dec 2021 15:30:19 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mv3Zt-00061N-CD for guix-patches@gnu.org; Wed, 08 Dec 2021 15:30:13 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v3 26/43] gnu: Add node-nan. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Dec 2021 20:30:13 +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 Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163899539122822 (code B ref 51838); Wed, 08 Dec 2021 20:30:13 +0000 Received: (at 51838) by debbugs.gnu.org; 8 Dec 2021 20:29:51 +0000 Received: from localhost ([127.0.0.1]:41627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv3ZX-0005vw-Ba for submit@debbugs.gnu.org; Wed, 08 Dec 2021 15:29:51 -0500 Received: from mail-ua1-f51.google.com ([209.85.222.51]:36394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv3Yv-0005r8-Lv for 51838@debbugs.gnu.org; Wed, 08 Dec 2021 15:29:17 -0500 Received: by mail-ua1-f51.google.com with SMTP id r15so6940742uao.3 for <51838@debbugs.gnu.org>; Wed, 08 Dec 2021 12:29:13 -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=KoxCzd8DwIWp+PE3VgG9iMmZVcqOPwT4avV2X44bHFnQc+gPCc9wpibPPYosVAmyKe /DCJNJOq/CqIaKqTO82aXl7cePktHI0gYayZJtGrW53ZIQd0IZCeqtp8d2evFssnf8Xg D0NaSISWzrBPyqL/6fxbQGJ0w+OKG/fmA28sWB/uu0fHUunx+9xyHo6sKsw1RO4eYRpu zz8caJbvLdpmpNNa2NgiDPeWjq3htpgjl/ihcHH7rMP2Lc7weiwucM7gzw4ZOlnuL5Ng 9pt8/t6HzVEPDY1VVNLF6C40ZUta398hZR8UED9wMEkCuDndLJ5eH3G0Nc7K/H9vQMjB Fi0A== 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=hBAGmw8VmXeNous85wBtuR4G+gGnSHJiMLFHZtQgOnDXjsAUoQXidnXlCIE6lYVebN 8VeQwA/wDzDyxYz9BGr+kRmywDs9v08EcAOHU9znkmppJzpfE6NwQ98KRDLdZTaRVAAE C0Z95wma9WhPNIIhAYRGKl6N+owaaBm7catfny5+Re4fMex2eVkGVLg1Pef0cTOIPNuC sqa3cdyqQtLFgm+6gkTq96sPUmok0q2EhRmnoAXgKDTS9ULTpQRQZ+okh7BXDYrKzAi4 T6aTvcxIXgxR/RYDwxf0pGcsZhMUyqp9hHkcerQhu3jtFvwGa3vEiPoy349qX6FFEBYG byaw== X-Gm-Message-State: AOAM53302Gyy1aCDwylNVsGZMy2AMrQk6aaNYHfU7U9WRhMVu37xki6X q6XtbNjL9hU8JgLAfXGEBteCbqYCMNPn9cZmCHY= X-Google-Smtp-Source: ABdhPJxoupvR4+lGix+FCWTe232lVDnxueSu/VmbY6VQmCtrWrHeXBRJuDURXX1IYVb4+YsOkHgGzQ== X-Received: by 2002:ab0:6f47:: with SMTP id r7mr11392093uat.85.1638995348198; Wed, 08 Dec 2021 12:29:08 -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 92sm2425055uar.19.2021.12.08.12.29.07 for <51838@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Dec 2021 12:29:08 -0800 (PST) From: Philip McGrath Date: Wed, 8 Dec 2021 15:28:21 -0500 Message-Id: <20211208202838.752542-27-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211208202838.752542-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-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=1638995571; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=FBEu3Hi74SVU6tSaVIogVmAOupGX+/61Ohl1T6C8+lYlewr7hW4QJarR3Rn7Pff0OqVSOA cg68hWeWAN2saStYzdTnArhjq/CnLYIYYbAn2yW1Isr3wVMzKgyzkTeBzO7zR7PG2ojtEW 0Vxd9k9097C/z+wGbQ+Ip4mFY+O3XUOYDsNbYbf1n7ABA6eIVCfD9EwANvaWpXslIAJx/Y 7hcIsUang7fQaMZzreYiyBFmA4ltG+ci2Lx+OKqkEDPPEjtWnWn2G4oMhMWHs+vclheLrK Vgo+GPwjiKghvVBb/ioruLPpNtF0Iyckj7SAIv6D5TpaUrFBqkfxcg393gEc2g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638995571; a=rsa-sha256; cv=none; b=KWtsOhRe0zXtF4HaYQtYY46s7w247FRXlvDMFKxCSxt0zwJdyb+/kBUBHENlwif5ySL8KR GRfQT0QM4oPwaz+rmRM0CpH3biGNIlkEhJebroskg1o4Aw9QBpR4sZqsVjg38YnKLHaijS ixV3zIsAE+17xhSLupAGVVlgB/T/bFLl/fOvymgw2jzyqkUKd5Ls0PcqXtnVhPCuygLjcE vq6IjT83fHajoj9g7oqalyrski8fGIy2mdTOPXEcgA/SOn4V4MPbQyfR0LlyynRbshds71 qnzOopzF78NAOBmR0Q+Cnz1WuBBUJfW949bp1bEhK6wj7ZykdGJ3nbJugthMBA== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=KoxCzd8D; dmarc=none; spf=pass (aspmx2.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.45 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=KoxCzd8D; dmarc=none; spf=pass (aspmx2.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: 100892D871 X-Spam-Score: -0.45 X-Migadu-Scanner: scn1.migadu.com X-TUID: DNQVvE3kcG8/ * 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