From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QFQ/Nmu8YmD9yQAAgWs5BA (envelope-from ) for ; Tue, 30 Mar 2021 07:51:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oKwoMGu8YmDXTgAA1q6Kng (envelope-from ) for ; Tue, 30 Mar 2021 05:51:39 +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 5DD811FA58 for ; Tue, 30 Mar 2021 07:51:39 +0200 (CEST) Received: from localhost ([::1]:53726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lR6wR-0001Qz-Q8 for larch@yhetil.org; Tue, 30 Mar 2021 01:29:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lR6w6-0000kc-Ix for guix-patches@gnu.org; Tue, 30 Mar 2021 01:29:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38543) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lR6w6-0000ar-A7 for guix-patches@gnu.org; Tue, 30 Mar 2021 01:29:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lR6w6-0005kU-6V for guix-patches@gnu.org; Tue, 30 Mar 2021 01:29:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47282] [PATCH v2 09/13] gnu: Add node-llparse-builder-bootstrap. Resent-From: Timothy Sample Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 30 Mar 2021 05:29:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47282 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47282@debbugs.gnu.org Cc: Jelle Licht Received: via spool by 47282-submit@debbugs.gnu.org id=B47282.161708213221987 (code B ref 47282); Tue, 30 Mar 2021 05:29:06 +0000 Received: (at 47282) by debbugs.gnu.org; 30 Mar 2021 05:28:52 +0000 Received: from localhost ([127.0.0.1]:50070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lR6vr-0005iU-Qs for submit@debbugs.gnu.org; Tue, 30 Mar 2021 01:28:52 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:46359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lR6vn-0005hq-Ag for 47282@debbugs.gnu.org; Tue, 30 Mar 2021 01:28:47 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3E21C5C00A2; Tue, 30 Mar 2021 01:28:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 30 Mar 2021 01:28:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=JCW7bY9DIK1BcgGljHhVeF36yYMVA5bRxFtKQ5Vv/ao=; b=NrzC5NcB GsgK2QnLCKHB/zTdxSon3ba9aFT3IzbTKI66UhvBpQRN2jVKGKOJiuICgNW4DU7U 1MFmTHSPRu3TIA24z2qeOAx/h9peNJj6ZPY6Nt4ONo4LmT9Z2yNZiy5fpigy42th WcPsEZ/mXcf5Ye7KGzMBM+6d+xdtLgE7DRC+Vm+/CeMd6RO6d6RJf4CsS8qW5gQp jCPUvtsnFcA+L6pxQGuIeSnUUp2FW/SfE/f8AwaSFJOpPMy2BRjCWCf8CDdGlFJD pL/Rpspk/sSKjAGAVp8uIP0vANx8gpdR1JM+OLzF5IvnrHqqIiFGirDD/bi8mJY6 s0TE3zksPRat5g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudehledgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvihhmohht hhihucfurghmphhlvgcuoehsrghmphhlvghtsehnghihrhhordgtohhmqeenucggtffrrg htthgvrhhnpeegvedvteeludehkeejleehjefhvdfhhfetfeeghffhfeekjeetteffkeeh heejkeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeejgedrudduiedrud ekiedrgeegnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhho mhepshgrmhhplhgvthesnhhghihrohdrtghomh X-ME-Proxy: Received: from mrblack.lan (74-116-186-44.qc.dsl.ebox.net [74.116.186.44]) by mail.messagingengine.com (Postfix) with ESMTPA id 06474240054; Tue, 30 Mar 2021 01:28:42 -0400 (EDT) From: Timothy Sample Date: Tue, 30 Mar 2021 01:27:39 -0400 Message-Id: <20210330052743.575-9-samplet@ngyro.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <87k0pprz6n.fsf@ngyro.com> References: <87k0pprz6n.fsf@ngyro.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=1617083499; 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=JCW7bY9DIK1BcgGljHhVeF36yYMVA5bRxFtKQ5Vv/ao=; b=pOVVPP9uYfO6avRrDsHWiO23yax5Fn/MPsGQeF5EUlap5KM6JZcvgkmYHbVgffR/7Q1I9h JqT9TF/MkaOjl6/Igdc1M66UkS9U5DdVG8nCJUWhUqw4F2AYOfb2o8n3TOYgMWXcbYNr8B Sr7jcpWNR6MR/+bOWkw8BBIbQ0pyfEoXbyuLEnuWEU01EFDYkS6DnMUiEYb7anfRwMTd5n Gq+uHAoBErZ4sGsMPPQuTjeYixJRN7SiGf/DWwK4cWfxXRw9iZd/1194NnqEpTNMmi3o8L pQblPhAbqr1mVzvSujlIv/3FJR+ZwNXpE3O1JuKXOrSduPJlk7xa457OeA6tEw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617083499; a=rsa-sha256; cv=none; b=hHhLlTh5ai7F80OjBL3fmtsQBh6SP8tPs4PeNS5sPQdmkaUocdv3gHtlDtDZVPUmhoXT5R 6QqZ0XnL60op/iiaVdLqIbJDF4v1kKz++AulaEqpbnu5iNWXXIA0/zlGGNdP7Pdi6w9n1N uaiLwcEl2P7RO88TAdpekKB7F4BcsI4V5gYaruJSaqqJZPcYgGHcioUrrNIF6AvLwqcZpJ p3t3R7dI6Dtzmve+550IbxbmpeMKe+ZIEf5R4bFh+DG75VOs3tVO9jj7iV3n5yTt01rWzV aItt4vg59bxfUteW11r2xo5RLna1/35XFFMx52MoZgyGkzmLLn6hMwsxrJYowg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=NrzC5NcB; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 5.08 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=NrzC5NcB; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 5DD811FA58 X-Spam-Score: 5.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9vCVdOLzvH/t From: Jelle Licht * gnu/packages/node.scm (node-llparse-builder-bootstrap): New variable. --- gnu/packages/node.scm | 65 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index 6c4c02265d..570d4521ac 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -333,6 +333,71 @@ utility modelled after Node.js core's debugging technique. It works in Node.js and web browsers.") (license license:expat))) +(define-public node-llparse-builder-bootstrap + (package + (name "node-llparse-builder") + (version "1.5.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/indutny/llparse-builder.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0r82iiwqsb73k2fxw7842rjjiixllxpyc6yl9cq4ma6ybkf6xmzm")) + (modules '((guix build utils))) + (snippet + '(begin + ;; FIXME: Unneeded runtime dependency. + ;; https://github.com/indutny/llparse-builder/pull/2 + (substitute* "package.json" + (("\"@types/debug.*,") "")) + ;; Fix imports for esbuild. + ;; https://github.com/evanw/esbuild/issues/477 + (substitute* '("src/node/invoke.ts" + "src/node/base.ts" + "src/node/consume.ts" + "src/node/match.ts" + "src/node/error.ts" + "src/node/pause.ts" + "src/edge.ts" + "src/utils.ts" + "src/loop-checker/index.ts" + "src/loop-checker/lattice.ts" + "src/code/field.ts" + "src/span-allocator.ts") + (("\\* as assert") "assert") + (("\\* as debugAPI") "debugAPI")) + #t)))) + (build-system node-build-system) + (arguments + `(#:node ,node-bootstrap + #:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key inputs #:allow-other-keys) + (let ((esbuild (string-append (assoc-ref inputs "esbuild") + "/bin/esbuild"))) + (invoke esbuild + "--platform=node" + "--outfile=lib/builder.js" + "--bundle" + "src/builder.ts"))))))) + (inputs + `(("node-binary-search" ,node-binary-search-bootstrap) + ("node-debug" ,node-debug-bootstrap))) + (native-inputs + `(("esbuild" ,esbuild))) + (home-page "https://github.com/indutny/llparse-builder#readme") + (properties '((hidden? . #t))) + (synopsis "Graph builder for consumption by llparse") + (description "This package builds graphs for consumption by llparse.") + (license license:expat))) + (define-public libnode (package/inherit node (name "libnode") -- 2.31.0