From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EHYpMmUWsWFXCQAAgWs5BA (envelope-from ) for ; Wed, 08 Dec 2021 21:32:37 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id AF4ALmUWsWGsdgAA1q6Kng (envelope-from ) for ; Wed, 08 Dec 2021 20:32:37 +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 6F9252D8DE for ; Wed, 8 Dec 2021 21:32:37 +0100 (CET) Received: from localhost ([::1]:51192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv3cB-0002l1-JE for larch@yhetil.org; Wed, 08 Dec 2021 15:32:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv3a0-0006lm-40 for guix-patches@gnu.org; Wed, 08 Dec 2021 15:30:21 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58375) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv3Zv-0000Rk-RM 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 1mv3Zv-00061y-NO for guix-patches@gnu.org; Wed, 08 Dec 2021 15:30:15 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v3 31/43] gnu: Add node-bindings. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Dec 2021 20:30:15 +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.163899539322859 (code B ref 51838); Wed, 08 Dec 2021 20:30:15 +0000 Received: (at 51838) by debbugs.gnu.org; 8 Dec 2021 20:29:53 +0000 Received: from localhost ([127.0.0.1]:41637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv3ZZ-0005wX-70 for submit@debbugs.gnu.org; Wed, 08 Dec 2021 15:29:53 -0500 Received: from mail-ua1-f47.google.com ([209.85.222.47]:39821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv3Z0-0005rJ-F8 for 51838@debbugs.gnu.org; Wed, 08 Dec 2021 15:29:19 -0500 Received: by mail-ua1-f47.google.com with SMTP id i6so6897020uae.6 for <51838@debbugs.gnu.org>; Wed, 08 Dec 2021 12:29:18 -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=KZfYtaEsxh0PqMSHOYnvQeNmBk1Ja0V4rNjMZvt4y6k=; b=d1fIJNDSOyjyBJxJ6JcWwxX/NGAGZl06YUCgXniP6Q6yxih4BPYbMt4vjaQ4hibBMf brNjZ3DY98HcjtASqnaqrGa+e1T79l9cJS4ufEYGZO+LgEzDp0BKAx5wq3LnfYWdOY00 Lsqt2zDBYKcFAZGnOcAJ4qEyieMU1QjeUgNV/kKmWI+RUmXfrbjLAxtHORZRnPb6AzRI uzjE8/F5YNDQpl7wCetbd/KGFhV3nb7lyvfxxgUxGz+GJzj/gM87Pie44Zxe/+9ptnSH S5nRJWcdItgYTgxluOEvsqqpeu95DKy4qIqMHdZS1KjGXmuOSW3lV/z0K8hoZwFPgjr7 Jd5Q== 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=KZfYtaEsxh0PqMSHOYnvQeNmBk1Ja0V4rNjMZvt4y6k=; b=4lgXYuOGUH4AuQu0RxCmtyA2baa+M6az2okve6uEDyWWEViozgyP/DEsUvddPUtfCN vjVAqKHGHY8Bx/gkhSGkXzjYIkl5aj4ns/zPliW1c+37PlVlWsLX1Ye8RGslLbkZwSSg Nw9me2sDdXKr2S9jLOZXNcN6jooiZT4HC7a6uTv76xjY5UShdx3RR1hVtS0JwAuPiEJG hQaGhMKW0njdmhBQpeW3jIQYZH5Xn4eXEQqoxO1bBWZXCgWipNEiOlQgS1uojIaof2Fw 0/eA1QNwGZWjz5Ofxe+Y1dGkaUd/i1KxdOVX6u8BIM0Om/o39RuWyi9WEKRVC9w5aXJ8 mpUg== X-Gm-Message-State: AOAM532xSO6TbclE5x0EIIhOESxyLyKNSvC5hcwn7/FVjX74iHBz/oFD 4w/UjE07H+8JROanzh/SsmIvcCGVe0MKRW3aW04= X-Google-Smtp-Source: ABdhPJyG3+7Z+od5NlMr/1ziHAy/krUIj0rUYFlbQk452iApn2oRtSkxrDqF7MAchQDUXW9ba2A9zQ== X-Received: by 2002:a05:6102:e46:: with SMTP id p6mr1090540vst.33.1638995353008; Wed, 08 Dec 2021 12:29:13 -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 y7sm2492083uad.2.2021.12.08.12.29.12 for <51838@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Dec 2021 12:29:12 -0800 (PST) From: Philip McGrath Date: Wed, 8 Dec 2021 15:28:26 -0500 Message-Id: <20211208202838.752542-32-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=1638995557; 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=KZfYtaEsxh0PqMSHOYnvQeNmBk1Ja0V4rNjMZvt4y6k=; b=hrHhSb4WZU5MeOin/0cBjyFNVF0DIwE7rdwMxMx4Ex60VwgCdcLORpK/oUKRACFDDGo7OV fo7E2498zXsob+msS1ImLpTCHgUNxgN84a6ugkpZsRub+8KMd28LSEFQTk8jlMjm7kBDam 1xMNEMx5pTpG0xfti23p5DeLGRnwnLW2HKFVfFI2bh20yM7QEP6AQMrAto0grv4YSeTbtW eK199h73GaFlGgEcoYagLGYV6IP13Yu+OMpPmZwj4Df2Z7H6wzfYM5zaqJbSfs94Hl0HpI NqJf+B8OCGR7tG7PkSrygLE2cxbQMfxvZ1Ot2CcEZ97tncI5vFj7SKODtDMQAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638995557; a=rsa-sha256; cv=none; b=JL+UXdLf81kGiysS76W7wgFR3F4gNGGa/WKtYwWmcu0L4JJpuTPDzNy/HN+mDuiTeS/4p1 eKtsq4zg9YYdxERwfnEWi7mdWIm0TKsmh6AVccWUzrpbuLIaOrRb8Qohkp1HWe/8Rhy+zg 8bjPMS6lCrULh3OlT3Tr+Xc6r+6cg/QrD5cRm6jqLAjtXNRHoQQuDhdWTqTJPQj4j/zEil FdmLVH5zqovGb7AZwiBVQOAF+RrdxtbHkCdCtP4bua6RlWLVjWXcF8tYCWG04EhptS/efS RpbiRhCpxSc5xY2iz2MFbAUW2jnbk2WJbcwyRon2sX1IEp2IrUPojJBe9nGxsQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=d1fIJNDS; 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=d1fIJNDS; 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: 6F9252D8DE X-Spam-Score: -0.45 X-Migadu-Scanner: scn1.migadu.com X-TUID: ffT1QlbRDj/z * gnu/packages/node-xyz.scm (node-bindings): New variable. --- gnu/packages/node-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index d23326fa25..196fa55a39 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -826,3 +826,33 @@ (define-public node-file-uri-to-path (description "Accepts a @code{file:} URI and returns a regular file path suitable for use with the @code{fs} module functions.") (license license:expat))) + +(define-public node-bindings + (package + (name "node-bindings") + (version "1.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/TooTallNate/node-bindings") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "100gp6kpjvd4j1dqnp0sbjr1hqx5mz7r61q9qy527jyhk9mj47wk")))) + (inputs + `(("node-file-uri-to-path" ,node-file-uri-to-path))) + (build-system node-build-system) + (arguments + ;; there are no tests + `(#:tests? #f)) + (home-page "https://github.com/TooTallNate/node-bindings") + (synopsis "Help for loading your native module's @code{.node} file") + (description "Throughout the course of Node's native addon history, addons +have ended up being compiled in a variety of different places, depending on +which build tool and which version of @code{node} was used. To make matters +worse, now the @code{gyp} build tool can produce either a @code{Release} or +@code{Debug} build, each being built into different locations. This module +checks @emph{all} the possible locations that a native addon would be built +at, and returns the first one that loads successfully.") + (license license:expat))) -- 2.32.0