From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id /oGvG6y+YmAQzgAAgWs5BA (envelope-from ) for ; Tue, 30 Mar 2021 08:01:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SBW7FKy+YmBkdAAAbx9fmQ (envelope-from ) for ; Tue, 30 Mar 2021 06:01:16 +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 E7A8614564 for ; Tue, 30 Mar 2021 08:01:15 +0200 (CEST) Received: from localhost ([::1]:52970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lR6wM-00018j-C8 for larch@yhetil.org; Tue, 30 Mar 2021 01:29:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lR6w6-0000kN-1z for guix-patches@gnu.org; Tue, 30 Mar 2021 01:29:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38540) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lR6w5-0000aj-RI for guix-patches@gnu.org; Tue, 30 Mar 2021 01:29:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lR6w5-0005kF-Ni for guix-patches@gnu.org; Tue, 30 Mar 2021 01:29:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47282] [PATCH v2 10/13] gnu: Add node-llparse-frontend-bootstrap. Resent-From: Timothy Sample Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 30 Mar 2021 05:29:05 +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.161708213121981 (code B ref 47282); Tue, 30 Mar 2021 05:29:05 +0000 Received: (at 47282) by debbugs.gnu.org; 30 Mar 2021 05:28:51 +0000 Received: from localhost ([127.0.0.1]:50068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lR6vr-0005iL-Ft for submit@debbugs.gnu.org; Tue, 30 Mar 2021 01:28:51 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:36425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lR6vl-0005hT-1x for 47282@debbugs.gnu.org; Tue, 30 Mar 2021 01:28:45 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 049BE5C0178; Tue, 30 Mar 2021 01:28:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 30 Mar 2021 01:28:45 -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=fn52lgO37W924lGxHhopYTZ/thqfcRm6Acjl9OCSv3g=; b=fqJ2lMgC BcumT3wtSYB1Y3XjfDqEqUfF5AxdnskVypFfm4nyZRs3LCPIlesEyjh/aRHDXePd TBNzzjZcCEWBUb/c5He5Kat1tCsUU+/TQsdbRvRlVcooKJua2GUThGLGRyptapNu qw4Jm/SIat6C5vChUMhKvcINFpStB50Hyld1+l0hs5iH/ZcqSEwd9tZqJH67lxTd bx6U06arZkT6b1GE008fIl1SoPsBs924RwTCj5h6iialu93ixybs9yinGTUYIRc/ zpMuZbSUPHj7+l13UKki//R3vXxsDwXnzHsSnUKGHr6fRAoE8TDodpkuGvtgIdc6 eV1EoVkQ5dbnkw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudehledgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvihhmohht hhihucfurghmphhlvgcuoehsrghmphhlvghtsehnghihrhhordgtohhmqeenucggtffrrg htthgvrhhnpeegvedvteeludehkeejleehjefhvdfhhfetfeeghffhfeekjeetteffkeeh heejkeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeejgedrudduiedrud ekiedrgeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho 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 C207A240054; Tue, 30 Mar 2021 01:28:44 -0400 (EDT) From: Timothy Sample Date: Tue, 30 Mar 2021 01:27:40 -0400 Message-Id: <20210330052743.575-10-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=1617084076; 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=fn52lgO37W924lGxHhopYTZ/thqfcRm6Acjl9OCSv3g=; b=BhriiWEL18gsOTL6Ph7ZWGeMITGqQ+Yvmdjxsi2oagzO2A4eCvARHmtzY3dHPqZdUXvCuI Aati2ZiKqylpcJb3TXTYCr0nfAUiI7SKfJOLYhNk8JPeZ/WkT6VUypLn4MVUGUt7UnYJ0i V6Lxqti0Zn9+XdsISb8kyw/9J5kriU8wuayJ/vhr0Yg9WRkYSOF9upJQDUNWtBHCcMfT+K 7OnlXlkMd/9JoWeckHgz3POltHLjIKJrN5xbCS6OgQqGYb7HZfwxZttxgsSzeNP1o186bC P3VliIfAz3Bvwpzvyj21U4rh1XRPy8UKW8nI87eZPUARYVH6xrFXjOcTvLki3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617084076; a=rsa-sha256; cv=none; b=L1iiwcG0AvmrZ2WcpNW4A4Y8Q59eH5WSD6ZBXAH5paYCX4fYQ9OzQJeMLgjl84WBb9EKOW rbxJrFse6U+2Oxu27SbHHStmIoX3CDO+5afkjwE2XvBhdDGn0X2BM8EN5tizbVET1usroI SMBjeqvQJnDeocmYOw829XCBRxQgP0cOwWk7/+mjMGaeOHDryqgoOUeGfRej0XvvBs/xE7 DJtmEI6NA3i563/AaKu9OkgkX2dP2c1AVf5iUrmLHqMyLFdP+DGUMccnzEa6mkqL5uhazF godbYaHZas3Fw7RyjCz2g5D6OAtqUuKdXhif9V8R8bT/UW5F5zaham44nwPQcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=fqJ2lMgC; 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=fqJ2lMgC; 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: E7A8614564 X-Spam-Score: 5.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: vjVlRUKGu+IH From: Jelle Licht * gnu/packages/node.scm (node-llparse-frontend-bootstrap): New variable. --- gnu/packages/node.scm | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index 570d4521ac..16c3decdd4 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -398,6 +398,62 @@ Node.js and web browsers.") (description "This package builds graphs for consumption by llparse.") (license license:expat))) +(define-public node-llparse-frontend-bootstrap + (package + (name "node-llparse-frontend") + (version "3.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/indutny/llparse-frontend.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1rm9g4ifyip30svm5cgnf0gx7d45jgh4mpf2hkd092xhngmfvicc")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Fix imports for esbuild. + ;; https://github.com/evanw/esbuild/issues/477 + (substitute* '("src/frontend.ts" + "src/code/field-value.ts" + "src/container/index.ts" + "src/container/wrap.ts" + "src/node/sequence.ts" + "src/node/single.ts" + "src/node/table-lookup.ts" + "src/trie/index.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/frontend.js" + "--bundle" + "src/frontend.ts"))))))) + (inputs + `(("node-debug" ,node-debug-bootstrap) + ("node-llparse-builder" ,node-llparse-builder-bootstrap))) + (native-inputs + `(("esbuild" ,esbuild))) + (home-page "https://github.com/indutny/llparse-frontend#readme") + (properties '((hidden? . #t))) + (synopsis "Frontend for the llparse compiler") + (description "This package is a frontend for the llparse compiler.") + (license license:expat))) + (define-public libnode (package/inherit node (name "libnode") -- 2.31.0