From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MNhRD/XV12ISlQAAbAwnHQ (envelope-from ) for ; Wed, 20 Jul 2022 12:16:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wPVdD/XV12I93QAA9RJhRA (envelope-from ) for ; Wed, 20 Jul 2022 12:16:21 +0200 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 F0B5D29110 for ; Wed, 20 Jul 2022 12:16:20 +0200 (CEST) Received: from localhost ([::1]:35844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE6kd-00021T-SU for larch@yhetil.org; Wed, 20 Jul 2022 06:16:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE6kM-00021K-4o for guix-patches@gnu.org; Wed, 20 Jul 2022 06:16:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58146) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oE6kL-0005Zd-RU for guix-patches@gnu.org; Wed, 20 Jul 2022 06:16:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oE6kL-0007wy-Mo for guix-patches@gnu.org; Wed, 20 Jul 2022 06:16:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55962] [PATCH] gnu: Add node-pbf. References: <20220614094954.15197-6-ngraves@ngraves.fr> In-Reply-To: <20220614094954.15197-6-ngraves@ngraves.fr> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Jul 2022 10:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55962 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55962@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 55962-submit@debbugs.gnu.org id=B55962.165831212630512 (code B ref 55962); Wed, 20 Jul 2022 10:16:01 +0000 Received: (at 55962) by debbugs.gnu.org; 20 Jul 2022 10:15:26 +0000 Received: from localhost ([127.0.0.1]:55905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE6jl-0007w4-IZ for submit@debbugs.gnu.org; Wed, 20 Jul 2022 06:15:25 -0400 Received: from 10.mo584.mail-out.ovh.net ([188.165.33.109]:42589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE6jj-0007vv-Kx for 55962@debbugs.gnu.org; Wed, 20 Jul 2022 06:15:24 -0400 Received: from player726.ha.ovh.net (unknown [10.109.143.223]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id 128BB24835 for <55962@debbugs.gnu.org>; Wed, 20 Jul 2022 10:15:21 +0000 (UTC) Received: from ngraves.fr (unknown [176.166.159.77]) (Authenticated sender: ngraves@ngraves.fr) by player726.ha.ovh.net (Postfix) with ESMTPSA id 285A52CBD4080; Wed, 20 Jul 2022 10:15:20 +0000 (UTC) X-OVh-ClientIp: 176.166.159.77 Date: Wed, 20 Jul 2022 12:15:12 +0200 Message-Id: <20220720101512.15920-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.37.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 15400340400971834082 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrudelvddgvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepteeffefhfffhjeevleeuvdehgffgveekheeuhfekhfehuefgheffhedugfegleeinecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkpheptddrtddrtddrtddpudejiedrudeiiedrudehledrjeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejvdeirdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepheehleeivdesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekge 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" Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658312181; h=from:from:sender:sender:reply-to: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; bh=goYQXPFwWyoovI8k3bbJnwiVBfrom1aOjwJxXtpvA9Q=; b=cBgmtRqOW1JR32dA2r2njkxOu8KmE61FCIH8FPquZpfbCas1PkQ1c6bbMPzozOAFNBp0pX 0msasC5Nnt/QV7n0EsD8n3gjjzX0F43Ptt7WMbsI8YwR7Kj+lpx+rZyXllw5y66EsRGwFt 9StQYro2uSazpG/AEBqehNRH/5bHNsyQGUmgeaTYuTdxJWdvEVYc5EbfXNGc88oGpHscno FUj67V96eh2GM2OIFy4Eop+4D8KaaOXxZ6cGCb1hzjkvdwroi0PeI0P4DgLavKFFtCMPPa yPRj8tp8JeKakvViuDYT8qdWCw+xTPsDYw2Zwi5zQjimxYTIsQiK0mmf18ZV2w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658312181; a=rsa-sha256; cv=none; b=r2jWcytLnGpNhawi9OxcekJ0CN9cdv2TN4uW+Tle+J1ffncbzE84u7A4bKQzoCfH8ONWKz I/yH7FLUwTc/MZPV2ughBSMSW6OwjZlGmxsKUKnJTgKHyuKkylWDPAkRq3QTPF/SQZjXis b0vcmK0THVSEYxdJZ+DRZMDiYubCxQ2guPL23E3tlTaxMKBjXfFUXCbMveuJOqsJZaN66K XWxpiShlSJjdmB+h7H8mKd5Pjvx58OZIqtaLZM37BINfwdNPiM6darUBDPQbF7NOyUDCzr OYI5rvR/Ot8Z0u5tEiSVm7SO0iUq87ExHCcpCUkrVFzceP9WatWWHx53PI+aiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: -1.94 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: F0B5D29110 X-Spam-Score: -1.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: yi3JAywpvw2O * gnu/packages/node-xyz.scm (node-pbf): New variable. --- gnu/packages/node-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 20325ebbc6..f124e2ebfb 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -232,6 +232,39 @@ (define-public node-oop while being as light-weight and simple as possible.") (license license:expat)))) +(define-public node-pbf + (package + (name "node-pbf") + (version "3.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mapbox/pbf") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1r8xs787ix79yr0vrwrizdml9h7cmxjrzhvnhkj784ac5f8nv5j7")))) + (build-system node-build-system) + (arguments + '(#:tests? #f + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key inputs #:allow-other-keys) + (invoke "npm" "--offline" + "--ignore-scripts" "install" "--production")))))) + (inputs (list node-ieee754 node-resolve-protobuf-schema)) + (home-page "https://github.com/mapbox/pbf") + (synopsis "Decode and encode protocol buffers in Javascript") + (description "This package is a low-level, fast and lightweight JavaScript +library for decoding and encoding protocol buffers, a compact binary format +for structured data serialization. Works both in Node and the browser. +Supports lazy decoding and detailed customization of the reading/writing +code.") + (license license:bsd-3))) + (define-public node-protocol-buffers-schema (package (name "node-protocol-buffers-schema") -- 2.37.0