From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KGniCYJjzWFTvAAAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 08:45:06 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OHpLB4JjzWHhFwAA9RJhRA (envelope-from ) for ; Thu, 30 Dec 2021 08:45:06 +0100 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 993A91E8FC for ; Thu, 30 Dec 2021 08:45:02 +0100 (CET) Received: from localhost ([::1]:57642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2q7Q-0002Fg-Qt for larch@yhetil.org; Thu, 30 Dec 2021 02:45:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2q6X-00014w-Aw for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2q6X-0001kC-1A for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2q6X-0006iz-05 for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v6 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:44: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.164085020225600 (code B ref 51838); Thu, 30 Dec 2021 07:44:04 +0000 Received: (at 51838) by debbugs.gnu.org; 30 Dec 2021 07:43:22 +0000 Received: from localhost ([127.0.0.1]:51042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q5p-0006ej-Qa for submit@debbugs.gnu.org; Thu, 30 Dec 2021 02:43:22 -0500 Received: from mail-qk1-f181.google.com ([209.85.222.181]:35555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q4m-0006ac-Kv for 51838@debbugs.gnu.org; Thu, 30 Dec 2021 02:42:17 -0500 Received: by mail-qk1-f181.google.com with SMTP id 131so21998374qkk.2 for <51838@debbugs.gnu.org>; Wed, 29 Dec 2021 23:42:16 -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=bRcIPzA0x6EwY6aJviK0dFJQeEJaJrA3s9yPQN08HVo=; b=U24GSV6eBYmjx31jy5QabWY0qfD2wSi4R6Z08C3q6mKKEaDDYA+Jf+xPBUWDhmDizD 3Fo/WkMSQptLvmgsz/uDCXtTy8QQfeK5skot/SB46kRZ0ouP9vQ71HWVKkyuI2r3sKAD QoxVC+rSLtc/er5cnwSUe3OrR54Pa2sAZj/fJCzK5gHQS28bQuX2tZ0tHm9Wd0QsTNE6 yjJkkxuE27q28SWQnTFEq8AUoOjfmsdOIKGI16aYe6tX2yuTPYwk42vh+IcRYZSIOSwI yUl7NV+oH2iz1es3LpiAw++pKCqCXVgKuQHgIOmS3rZwBlnRJ7MTROkNG5ZuVMRyi1X+ LZDw== 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=bRcIPzA0x6EwY6aJviK0dFJQeEJaJrA3s9yPQN08HVo=; b=DXszWrbod8F+mVBr6J2eiZtnmVmrRGwhCE7AmHIW8G47o/HgZk5UpWEmXw7e+7JDOA IFPbpCfP9jsKj8s2hRfeUYJoam9SOeZVmTy8hjQqkeDp2nHZyIKdYd86lPjdvZ9QqmJj kBNcDwF2ZB5vr1vfmAkjFi1bSKzOMdBB8RJETv51iWLqPLU+6m4Jn9sAs4GBBNK1Kzjn AQRqbhWUSazb4YqRQffg4crFQEYSPaVB9SjbBHOtuL2VzWyELi7/DRogmlLLOo8vWu6h TiDagUoPSwJT55YIoA97ZP8yuAAnmQiompF5LXW95DLtpP7FLcd2D1TDBGHHPNEMr/oR rkow== X-Gm-Message-State: AOAM530ml2huXYTZpnZHE6PcRs1CaCDKhspIqJ4D96Fw9LvxezVbPqJF iMDuvkwfcvcs3jU02+kc6FcZpUIM19lphqs4 X-Google-Smtp-Source: ABdhPJy4T2APAzP0Bp0FBWsGzmV5XlwjAdbUa6shI26wJ+WHb6rhFXmhux3pY84cGTg4Efcp/Z8/Ew== X-Received: by 2002:a05:620a:1a95:: with SMTP id bl21mr20422291qkb.529.1640850131233; Wed, 29 Dec 2021 23:42:11 -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 h16sm20899621qtx.20.2021.12.29.23.42.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Dec 2021 23:42:11 -0800 (PST) From: Philip McGrath Date: Thu, 30 Dec 2021 02:39:00 -0500 Message-Id: <20211230073919.30327-23-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211230073919.30327-1-philip@philipmcgrath.com> References: <082a81964a43ae5f735ad2ca433d0dfe00859c35.camel@gmail.com> <20211230073919.30327-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=1640850305; 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=bRcIPzA0x6EwY6aJviK0dFJQeEJaJrA3s9yPQN08HVo=; b=ab2SjVRm93ouN/iidOAgNsoEakjFtxfCHDNbQQ3Z43KYKz89NcpgnNox6Oz8QUhoczoc0I ZjzSXJZBy1oP5whvxiny53drNWEOA9Yyw6ky80368bw1RIZa9M/qVIME+6WMPqgO/yX6Tk Q9phdHgsdIGPXZY9sBwAfe3HbldXyBnJrBftJQE2KUBsjTw6v0pg5aAldmdQ3yrgOsgl2L s8sWUkRStWuJb+leMVi5d1hVTwEo0PI7fGRQDUxfw7Hniy0GNadGbT1Z41c/tgZ3Zv/EJW SKQtJCef0wczjbBmWMfgQ+mKTlB90ttU/VeLrh3c6twi4zxUpbb7IZCtbx8YJA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640850305; a=rsa-sha256; cv=none; b=jNwxDkhmsYYTKzawrQ4WF0pq/4xu17S3z+1KL4rhhjoofRU2eGYqb8h4VM5fXF3InTGuZk XmYXcIXKxb512SPoUgbBActwnHis+11ETUyqQAt7ILWcA1z6+hV301kbyTD9u5zADrsA+X 1Y+zY+uYK+pTp8CWbCUjblsZnBIsbRkTNXlAVMHGKm4SnH5Av6sR6QmJJXOEpIuKjn70D/ anxX6t1g6ap/ZNQFSBg4ui/2WSopo4Lu1UWvcdnQFdOGtJPGOH9OFDMFpysJHecHojenh/ DepjyvLqqG2/BcG4aBvO8SYfuQ1HFVcd3kYxOuImLNOGvOz4o+5Z62ZJwaQnMA== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=U24GSV6e; 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.93 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=U24GSV6e; 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: 993A91E8FC X-Spam-Score: 0.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: jXl64n4sb4Wp * gnu/packages/node-xyz.scm (node-nan): New variable. --- gnu/packages/node-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 3f0ec35547..4eda001dc4 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -596,3 +596,49 @@ (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 + `(#:phases + (modify-phases %standard-phases + (add-after 'patch-dependencies 'delete-dependencies + (lambda args + (with-atomic-json-file-replacement "package.json" + (lambda (pkg-meta) + (delete-dependencies + pkg-meta + '("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))) -- 2.32.0