From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 SGtsA9ZR2WE/XgAAgWs5BA (envelope-from ) for ; Sat, 08 Jan 2022 09:56:54 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gFCPO9VR2WGfSAAAauVa8A (envelope-from ) for ; Sat, 08 Jan 2022 09:56:53 +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 7B3CE32FF4 for ; Sat, 8 Jan 2022 09:56:53 +0100 (CET) Received: from localhost ([::1]:35982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n67Wu-0004Zc-Au for larch@yhetil.org; Sat, 08 Jan 2022 03:56:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n67MR-0003nG-VP for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53497) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n67MR-0004ch-Nb for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n67MR-0000v5-LL for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v9 22/41] gnu: Add node-nan. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 Jan 2022 08:46: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: Timothy Sample , Philip McGrath , Pierre Langlois , Liliana Marie Prikler , Leo Famulari , Jelle Licht Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16416315343350 (code B ref 51838); Sat, 08 Jan 2022 08:46:03 +0000 Received: (at 51838) by debbugs.gnu.org; 8 Jan 2022 08:45:34 +0000 Received: from localhost ([127.0.0.1]:46367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n67Lm-0000rS-Hg for submit@debbugs.gnu.org; Sat, 08 Jan 2022 03:45:34 -0500 Received: from mail-qt1-f181.google.com ([209.85.160.181]:42807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n67Lk-0000r1-Vp for 51838@debbugs.gnu.org; Sat, 08 Jan 2022 03:45:21 -0500 Received: by mail-qt1-f181.google.com with SMTP id y17so8043478qtx.9 for <51838@debbugs.gnu.org>; Sat, 08 Jan 2022 00:45:20 -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=on9vLZvOEH0EfV2OEpp25txdvsjQiCrr22rTOIvDNmQ=; b=hEf5ECiJW67VPR8NYY36SzWbV678CWT/BnoZxOpnCVjz84QoDRVRfUHBl7yMMRzeYv oZn+GvwJ5t0zc9cnk5KV9eizq3ylWco07rQoEN8pVcCLfwIRVHIZ0dHgbR9JnmoWWR5g vynBuDpJ9JbK2t5c49/12o99b8BRDXmiX2cu0yXksfmRBG8XnlGBdYLcX21EYOdhCIPi db6o892blJ4Ul0WMb9t5Ol9sM7ysHWYxjGeG5aQ1V5VeZ/7zNrrhbe2+OT8Jl77/lE3h pSotgsaPLnKt6YoSpdSRPRN3wTECQsGd4v72cGMaiHbSN1xpUW040Ocr47eOxNkZMW4W 79qg== 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=on9vLZvOEH0EfV2OEpp25txdvsjQiCrr22rTOIvDNmQ=; b=pEHZIkcSNlsnNtEWSPW714Wd+jJ2ry7gh7dYd+PysHxO11NgAqsdZXGXtOPTpW5grT 4HheveT8yzPUZChxEujz8R9ugmqbtIZvw68xhBN8yLJ1wKsIkgLEtR/fM7svk+o4S3aR XRVx9L0hGf8zJ0BDZscnGG5APIOJ/UyOMkygBi7KaTpMXJbLhvTK0AszkjT3eKGOOmCU dlgyZnbecguVZg08MM2cb2/4QT7GJTkybx3LjeetkFCxoSMAOqjRImVMUhazQpRg7hKC b4zJAAaa6hgSaYQ7aPM09wOQm7jawzpieixcnaNoNZipfZfWiiUSK/ULZ83hnRP6YMMi jLAg== X-Gm-Message-State: AOAM533qH0tFuUhwQc4fo7/tlNWMCHmv1mQ56I9YR9WFdb/Y5yjNEk+Q 5z7ADWXUnMlc2vIi0HrzSmDgdHvIlEBkQmH3 X-Google-Smtp-Source: ABdhPJztL645SjBgdCXKkL3ZGtLfRcLF2i/Ks29aqjBW17E8W5yPvoo4ji46raJC8+c+nyiWgD5h+g== X-Received: by 2002:ac8:58d4:: with SMTP id u20mr54553060qta.49.1641631515393; Sat, 08 Jan 2022 00:45:15 -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 r24sm668718qtp.38.2022.01.08.00.45.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 Jan 2022 00:45:15 -0800 (PST) From: Philip McGrath Date: Sat, 8 Jan 2022 03:42:10 -0500 Message-Id: <20220108084229.362642-23-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220108084229.362642-1-philip@philipmcgrath.com> References: <64e08d3a1838ed8507f33fae895545372960522f.camel@gmail.com> <7b04af28bbd57c67093ce8f33a648efec89693bd.camel@gmail.com> <441bfeb0-eb6e-81f6-488b-cdf1b09a78ef@philipmcgrath.com> <20220108084229.362642-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=1641632213; 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=on9vLZvOEH0EfV2OEpp25txdvsjQiCrr22rTOIvDNmQ=; b=jCj1RyIJbkkmuWm0bEAXGQtnGXRVQ/HT+zaoghZs4Hz9VcTc1rpaj7ijlIqttrIKm1qhiF cZeyVKZczDlpjdg3A2lDc5f7iifZHYvDn33e7t3Sr/GCao5rSlhrMMeGtJrrmh4BbcM/qa z/6j4Hbi5aYUtZ9mIIjn9NQOvcF8MoJ03YYgpgqtEAkne77YlbWqU9dmufNJy6IDP/lYxj jEcuK3Zg2wnoVyzP9LD/rPggfZV4Q7Yx8qzWPvWDip++SvZuYwGNRyYnw5hOSwwLR8Wwkg eVtye5vUZosbYGvu4pFzGzlMYIG7n/GHehVxjBBeURmxe349WpyRL65tS4CyFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641632213; a=rsa-sha256; cv=none; b=GlF04gbsGcpbF1qSjUMd+cv6FGb+/5MFmSMCI/bdh1FvEGfkf+R8EQzCuv5cnIuZ0m1XbL cYB4RWfGss45Wh0Ugd6bVtUU87VLvnoQsGF/2+KAG5QWWw1QX4SGWfM7JM9a+K8DfkC2s6 51LspRYkyWTY7e7oUw4LRS1CJqY5sfehtyP6hd6ELQbFwXZjg7qucubqeCosRsyZpkUfwq PG2++TMKVgPPlQ9XMQcihthIWlzRykfchAENRMIJookEHXCEeKJbr+6tZZNqV0TMs7jwFq T0dCiZkpvbpwHgrM3gF9/hmKSWJF9+5gRvo3sC2lDk1l1CIcOZ6QPFCF5WNwFw== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=hEf5ECiJ; 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.90 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=hEf5ECiJ; 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: 7B3CE32FF4 X-Spam-Score: 0.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: TwFicz7BTxlk * gnu/packages/node-xyz.scm (node-nan): New variable. --- gnu/packages/node-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index b08609e8b0..0e05e938bf 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -571,3 +571,46 @@ (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 + (delete-dependencies + '("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