From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aB8YOMUITWWyUgAAG6o9tA:P1 (envelope-from ) for ; Thu, 09 Nov 2023 17:28:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aB8YOMUITWWyUgAAG6o9tA (envelope-from ) for ; Thu, 09 Nov 2023 17:28:54 +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 aspmx1.migadu.com (Postfix) with ESMTPS id B189759A63 for ; Thu, 9 Nov 2023 17:28:53 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm3 header.b="bygMIe/J"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b="M IYqIPl"; dmarc=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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699547333; a=rsa-sha256; cv=none; b=TjOQJUqqwUKLac8JV+AZseStGqovT9q3gWBuWe71bcYRQvsTeAa5L8TdeXlNmyrwXbNAoC M1pFLH+Wdrs7hv9f9WgoIfjUbtyn+ql7COR2oBmuFIqdPjzibmHm+tam61jMz4uZyaDSBY 7Ibtrh2vNnRisXSmxDinL1xaNKGA089OW6usyC2LAZyDV8oYlMnzthngHA39P0As/ZE5p2 sgx2QAUYp2JjjeXsoNEf5x5dJ8ZE4Cl3xVSanICjF0Q1iqBlrWhfzYinVj2y+kn1W+HkMl CXJUjueBXfCqFcLvKp1xoOTPdAtSNndWCxuV+bMRaH6S4l1vq0KoC+LylkLeTQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm3 header.b="bygMIe/J"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b="M IYqIPl"; dmarc=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699547333; 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=E9ocrdTfeEmbK+CG7oTU30PmquE0qggOBuAtfU+BvE4=; b=qjzddzuwMu7JWePeVlZjsqRZQthsBvaSoN6bJ4biO/D1m+HfmUXaDCt7/2xjuHHwRf3H+S qbn+KikyTYIX7LgQzPp+NUD8+PTP8/ncVgmfivJIGyVntKT5nsb+rXA1oKNZ19dH3kG4F8 0ZpGZq1/dDSMZRDHHSg+wk7F2HdfTH7qqdPlKwbjxAyg3/eH0UJlb5Zq7XW3W8Ttdx4DTt LTLZXIV05awryJ9EOoJhGa8jd8SzBlYVom71gYgaMamy3aw8LqTs4UQptWjnJpGR2yGD5v tJ45CtgglpRDsyz2/9C8Hyri3VGojQXfZMa23TRlCWTkkXzOlc1mO/P1eSOhFw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r17tN-00087j-Pm; Thu, 09 Nov 2023 11:28:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r17tL-00083l-C0 for guix-patches@gnu.org; Thu, 09 Nov 2023 11:28:27 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r17tL-0006aN-4O for guix-patches@gnu.org; Thu, 09 Nov 2023 11:28:27 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r17tw-0004fb-8L; Thu, 09 Nov 2023 11:29:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67019] [PATCH 08/16] gnu: Add node-vlq. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: philip@philipmcgrath.com, julien@lepiller.eu, pukkamustard@posteo.net, guix-patches@gnu.org Resent-Date: Thu, 09 Nov 2023 16:29:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67019 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67019@debbugs.gnu.org Cc: Philip McGrath , Philip McGrath , Julien Lepiller , pukkamustard X-Debbugs-Original-Xcc: Philip McGrath , Julien Lepiller , pukkamustard Received: via spool by 67019-submit@debbugs.gnu.org id=B67019.169954729117777 (code B ref 67019); Thu, 09 Nov 2023 16:29:04 +0000 Received: (at 67019) by debbugs.gnu.org; 9 Nov 2023 16:28:11 +0000 Received: from localhost ([127.0.0.1]:48519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r17t5-0004cX-2o for submit@debbugs.gnu.org; Thu, 09 Nov 2023 11:28:11 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:55545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r17sy-0004aI-HX for 67019@debbugs.gnu.org; Thu, 09 Nov 2023 11:28:05 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 91D8D3200BC1; Thu, 9 Nov 2023 11:27:19 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 09 Nov 2023 11:27:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1699547239; x=1699633639; bh=E9ocrdTfeE mbK+CG7oTU30PmquE0qggOBuAtfU+BvE4=; b=bygMIe/Jawbf6EXBkULwpbm1tk UeM4DCw0xirgD+9fJ1YdFcUHFcc7bngu1/NMFEjStERJd1jYtk/J0ljs1uCR1RmZ Mk+7f/m3eBxUQm11q82oYHr98dimS/IjylZgGTbtaMpXPmtF4/2ovza3w+Gcm+iv GPpQKGloUV1D/s0cHmjXRj+EXLmP/14mN8w3703krIenkln6i02q5FG3AjGCDCL1 cwFeJWEkKrW3ojOi324KwF7sr58R1uVg25oZMB/yQdBk4uNJBxJiZOLH7bNN90Lf WgbqkPU5EpLbKqn4qd0NXRef5+CZ+WJT9AIGBNjgmYoS8uNGQ1+GzoteHtmw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1699547239; x= 1699633639; bh=E9ocrdTfeEmbK+CG7oTU30PmquE0qggOBuAtfU+BvE4=; b=M IYqIPlL4kFo3jsZqi063Gs5pz+N7AdZvncIneye98GxEeRh20OK2IPKFe24yGTfI OemasHHsG5ZRVvmrOv3+tPMEd1jILyt3f08FD+G2aqaCqpuNLjim+XiTmGm3ahVp u4xPzCr0afdX9YUHz8CYRUoWIPxRGml9m4GHDIl0xHC5aI/wr7y4lubQc71bCNLl ZKzpBAKU6ZK6iAawjggNUre2GQkpfL5Skj7buxzf7YwqschcNOE6mrFNzWiOgtF9 n3Rm6u9Zr8FhTmreCZqm8/HpyM5gJZ23S/qDXXoZFucBTpi582XE9lrWsINnJ9wu pPZkYQfyvT2JGwOM7jIjg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvuddgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefrhhhilhhiphcuofgtifhrrghthhcuoehphhhilhhiphes phhhihhlihhpmhgtghhrrghthhdrtghomheqnecuggftrfgrthhtvghrnhepudehvdefje etfffffeektdehtdetudfhtdfhuddtueeukefhveehhfehvdfhheffnecuffhomhgrihhn pehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehphhhilhhiphesphhhihhlihhpmhgtghhrrghthhdrtghomh X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Nov 2023 11:27:18 -0500 (EST) From: Philip McGrath Date: Thu, 9 Nov 2023 11:26:30 -0500 Message-ID: <5114fc6c4d716300492b2e04d7af0389412bcf71.1699540553.git.philip@philipmcgrath.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: B189759A63 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -2.21 X-Spam-Score: -2.21 X-TUID: 5pclUL7my2XW * gnu/packages/node-xyz.scm (node-vlq): New variable. --- gnu/packages/node-xyz.scm | 58 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index ee96dee767..adbac8a6cd 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1793,3 +1793,61 @@ (define-public node-copy-anything face of complications like special objects, symbols, and non-enumerable properties.") (license license:expat))) + +(define-public node-vlq + (package + (name "node-vlq") + (version "0.2.3") ; last version accepted by flow-remove-types ("^0.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Rich-Harris/vlq") + (commit (string-append "v" version)))) + (sha256 + (base32 "1vdrarssrwxpcngyfx050ba0gnfinzi5jn3xs4w9rnjvxngx6m8f")) + (snippet + #~(delete-file "dist/vlq.js")) + (file-name (git-file-name name version)))) + (build-system node-build-system) + (native-inputs (list esbuild)) + (arguments + (list + #:modules + `((guix build node-build-system) + (ice-9 match) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (add-after 'patch-dependencies 'delete-dependencies + (lambda args + (delete-dependencies + '("eslint" + "rollup")))) + (add-after 'delete-dependencies 'patch-build-script + (lambda args + (define new-build-script + "esbuild --bundle --platform=node --outdir=dist src/vlq.js") + (with-atomic-json-file-replacement "package.json" + (lambda (js) + (match js + (('@ . alist) + (cons '@ + (map (match-lambda + (("scripts" @ . alist) + `("scripts" @ ,@(map (match-lambda + (("build" . _) + (cons "build" + new-build-script)) + (other + other)) + alist))) + (other + other)) + alist))))))))))) + (home-page "https://github.com/Rich-Harris/vlq") + (synopsis "JavaScript library for @acronym{VLQ} encoding and decoding") + (description "This package provides a JavaScript library for converting +integers to and from Base64-encoded @acronym{VLQ, variable-length quantity} +strings.") + (license license:expat))) -- 2.41.0