From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gKt5D6cetmFDAwEAgWs5BA (envelope-from ) for ; Sun, 12 Dec 2021 17:09:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GLAdC6cetmH8JgAAB5/wlQ (envelope-from ) for ; Sun, 12 Dec 2021 16:09:11 +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 E98AE1DA1A for ; Sun, 12 Dec 2021 17:09:06 +0100 (CET) Received: from localhost ([::1]:57144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwRPO-0006s7-6P for larch@yhetil.org; Sun, 12 Dec 2021 11:09:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwRPK-0006rr-SF for guix-patches@gnu.org; Sun, 12 Dec 2021 11:09:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mwRPK-0005tz-2g for guix-patches@gnu.org; Sun, 12 Dec 2021 11:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mwRPJ-0000Eb-Ur for guix-patches@gnu.org; Sun, 12 Dec 2021 11:09:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v3 31/43] gnu: Add node-bindings. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Dec 2021 16:09:01 +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: Philip McGrath Cc: 51838@debbugs.gnu.org X-Debbugs-Original-Cc: 51838@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1639325311856 (code B ref -1); Sun, 12 Dec 2021 16:09:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Dec 2021 16:08:31 +0000 Received: from localhost ([127.0.0.1]:52940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwROp-0000Dk-0F for submit@debbugs.gnu.org; Sun, 12 Dec 2021 11:08:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:58786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwROn-0000Db-G6 for submit@debbugs.gnu.org; Sun, 12 Dec 2021 11:08:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwROn-0006qc-CH for guix-patches@gnu.org; Sun, 12 Dec 2021 11:08:29 -0500 Received: from mout.gmx.net ([212.227.17.21]:35231) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwROh-0005mK-GC for guix-patches@gnu.org; Sun, 12 Dec 2021 11:08:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1639325295; bh=IG1Sdj5SBIbeB/D13UzC6RWRCHtpij20aDNxLqW3UZg=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Date:In-reply-to; b=IVneHYke1H7nukjZTI58U8mVg/VDYMnvMagOWNrME5UuOoudu6HiO93cbKDXeFx66 QEYGzxL0HKOsRhO4aX1qHk55RdzTmzKNSsy3xkcZ6yYAcPWGQAVd9mAHNeoZaPoRKd It+8C7rYD5xlgp5t/8T7DRR1Y2NoH40rZdrM+b7U= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MIMfc-1mi9e72C4S-00EQOk; Sun, 12 Dec 2021 17:08:15 +0100 References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-32-philip@philipmcgrath.com> User-agent: mu4e 1.6.10; emacs 27.2 From: Pierre Langlois Date: Sun, 12 Dec 2021 15:57:54 +0000 In-reply-to: <20211208202838.752542-32-philip@philipmcgrath.com> Message-ID: <87lf0pztzn.fsf@gmx.com> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:j/GId5A92vJEpsd9WIKlANWsa5TZaTDPfI1XLXHw1muZyWFywDv j038W5Czleff/n/BlUlL19UdHdjcjFBPBdPpthZElzdn4xH+KGZtHqp1m7dU0UmUlKVDNC9 2vOfFqzg7yL6ouAvRHpLutHnGrbtauwaAs89C6MrHNGuVz2CK3uIcoZbUAOeBuibBrv9Kk8 Vyvlko5bjil2Tx7opi59Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:L2tUVZ5pORE=:BrTist1/AUbFY3FkCZTNUf 0svpmI7dxDgvt99SvPyT1AaBtvt0ucv1p2I9AnZQbs5sEvhAY/Lw366ENDCVArUJIVPPGapRn 3ZE/YicKYQT6jJMhsLIfZa3lK7HQope7abOSgUNwIQUUU7nCQe91FSGJmHUjlM7hf3QgkXRVv lk768tAKlskqa0e3nkSgCHYO4Mx7ihx716BUiWOvFTbqghKN3ME1N0RDg44Nt2J23kyqeKKze oV2kekVXDfVAmOoV8NdKYZZX4ZqfTtzz51BsP+Vp6a+9Gsro9LiwZ1XkAzEauXv5PE6xhw4Tp ubpxW7oYZtQeGAqLRWpAY8xm6+8BBrhgCSK+Txkg4bdN7BkYG/Dq/l01gh4RmUbFaOlImHt7m Szo+b5Df3nFWnYpOJUYaWTuCHEP5UNW9E73YuLJXq0QKYpUBq4nI0VNtH4P5m/5vIzPryzFk2 qEKtyUnEYCPXSm31F+RwUCMD2iz1d64sq0IntrUh36XGiroE5pauD4FhyqM1wvX2bODx5y9d4 4gGDibCjTxSfzX2NnFeV01sLstapYTpE7IZMTjHxuBk865XTv+SnWbqUrFwwRkKtLO8nC0xjs hJ6KOtfFg3tsvOq413JFgVrQJCdyq+rZIbJlIzt7XHRu9+O/pCsUuEd8MmnFICSZsI6nM9bcJ 450F4ReOYTZnAz2XVTzOqMc3SN0/mBW41CMeCsmLqM4mBLUTrO1XuyM5GjiMLE0lxb/qNypr8 eWXfQMNfMP1AiboH9xiecPB3DNaxZmQ+Rj83EVpLGffioJekKHh1vns4ie62jmHqzFmcp1Bxm vNvXrbD7ghTmaxuT/DW8dcLLz0svlYCczd3knnWtIB03Jff8P7sg4juVtF/pQqOaAaIhvQVqf Umo/Gt8jZ5efv/lZnI0sIReh8wmFB8VzewBpIan5sMRu5oqsVAjsx/azqLfKxJBSP1DUlq4P1 5o7MA0/zOjHLa9kt9z+ra2a/sc+jFee5gJVPAAILz0zkFjMzYaja/2vozI0ylV0XrkMjQv39Y TWG/ZknrPRMTtgGOJmv21O03LB5dPULXUVqZ7kphn5Pvx38jSdB9Dkk5eI6SooORhsm4/LcxL Hxth48AcJErk9w= Received-SPF: pass client-ip=212.227.17.21; envelope-from=pierre.langlois@gmx.com; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1639325347; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=xGe0hTy0352cpn/ejKw0x9iYZ2ZKMLuEtSaD82v07CM=; b=a+G8hU3dSVVOl2fX4xFeXYq5oKdKEbxM4HhbVbIWRIPxAkW3Lsl6DHu26F3c+pv39qpWw3 MVrrkV6XDN+J+75U6iYqIxImbiIbajwlGGtmouoefyLQYMkGd89qO9mlB+VvOVk0kXh+0s H8+3gX79azVH/qdVRfE208Cpos7aP4w6loUnI4JwWDaXyve75b48IEQOWMl1VnMPR2JP4W LeOurntwvLgDwTxVpMPDkk5BlPhnj709UNDEsI83VNLyNdrUCF3nR0YOTVHhAXwrzyXZKj hFnAdfAxKWngxPQSQLcSax53e4ve6YVp25zSUf+LEhgaWDc5OWBwmMMnq5UEKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639325347; a=rsa-sha256; cv=none; b=ePCk1EZlsU498Gi3S2NSS8h4zSVlw0xq4jaS6nNJzPN4ZuqZtPzOt1alRSreImFthuU+DP VkGgluS5rn6Crk99EnHYsx63lHlYjE7r6RkiaLu4gUSilVzpTbeSaae0hGLVcW8oIBy2Ne 9DmM2CEdYBJSwg9wdyNYUYx7DzTCFZf4Q4iJE8eXCaW/yg5HCupXDimfXaw7DPhSJrLCEg GA671flMINySOJ5kadjhv/oWYOKbokkoK/MpnvYBqvnb01LkGcrFWOxxRV7xPXX5zjCuYN 9dNFxI9cidZP6FB9oVYRrICTH1ou2FH79lEss3i1jOcbeJWJ5amGZUg7xiY7Iw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=IVneHYke; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.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: -2.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=IVneHYke; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.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: E98AE1DA1A X-Spam-Score: -2.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: p7/uMTGsjPui Philip McGrath writes: > * 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.") I see the upstream description is prefaced with: --8<---------------cut here---------------start------------->8--- This is a helper module for authors of Node.js native addon modules. It is basically the "swiss army knife" of require()ing your native module's .node file. --8<---------------cut here---------------end--------------->8--- I'd suggest to just use this as the description, I'm not sure we need to mention node's addon build system history here. Otherwise LGTM! Thanks, Pierre