From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ULdJCVsOVmD5PAAA0tVLHw (envelope-from ) for ; Sat, 20 Mar 2021 15:01:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4FouBVsOVmDxNAAA1q6Kng (envelope-from ) for ; Sat, 20 Mar 2021 15:01:47 +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 D55BE1D2C6 for ; Sat, 20 Mar 2021 16:01:46 +0100 (CET) Received: from localhost ([::1]:53258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNd6o-00016K-1e for larch@yhetil.org; Sat, 20 Mar 2021 11:01:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNd5D-0008So-On for guix-patches@gnu.org; Sat, 20 Mar 2021 11:00:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41474) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNd5D-0001bw-2A for guix-patches@gnu.org; Sat, 20 Mar 2021 11:00:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lNd5D-0000OL-1V for guix-patches@gnu.org; Sat, 20 Mar 2021 11:00:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47282] [PATCH 09/13] gnu: node: Add node-llparse-builder-bootstrap. Resent-From: Jelle Licht Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Mar 2021 15:00: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 Received: via spool by 47282-submit@debbugs.gnu.org id=B47282.16162523791358 (code B ref 47282); Sat, 20 Mar 2021 15:00:06 +0000 Received: (at 47282) by debbugs.gnu.org; 20 Mar 2021 14:59:39 +0000 Received: from localhost ([127.0.0.1]:53004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNd4l-0000Lj-B9 for submit@debbugs.gnu.org; Sat, 20 Mar 2021 10:59:39 -0400 Received: from mail1.fsfe.org ([217.69.89.151]:47260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNd4g-0000Ka-U3 for 47282@debbugs.gnu.org; Sat, 20 Mar 2021 10:59:35 -0400 From: Jelle Licht Date: Sat, 20 Mar 2021 15:59:21 +0100 Message-Id: <20210320145925.12500-9-jlicht@fsfe.org> In-Reply-To: <20210320145925.12500-1-jlicht@fsfe.org> References: <20210320145925.12500-1-jlicht@fsfe.org> 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=1616252506; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=THPzeReZfwOcmTe6igRS4IK/cISbXzzhBG0kLubvpl8=; b=nHN/ziiTbe2VIgvXxkzPlxVKCRRR7MrQPZwffAHiDV/VOm20JmYQ7+mbUaWqem8rxbirdX 3rigZ8urhxfs0Tj+KEn1uL+FGrZ7psQutDdj+t+hHmOUqCnAw9UpicwrUHzvTofTW7wKL1 DpGz7o6NznAmQTaIRkpkNFr6DZhGe0wLU42+428xWd/I+Lh46P1hQiRaeybE9fzDICHbK8 mxUNeqe+XvxzCxomp3zYyBOEcnbxzjI46G1/pTq9OksECftxL1jj/yovczJ4mhC28ymXAO VlNa/7d6UvrvxwVmyAlMtSCZMLzVCRFelntkjNO5xR4D99gP/O0gZMnKBffU1g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616252506; a=rsa-sha256; cv=none; b=EaHh//fDX95HAA19kn17LMMZnH2DEL1XZ/+FlVttaKUAIVdXTd2SVutDa7bEtWphZbroMo r8wddIcIOv0NTbtW6OzuNDDf1hjz8rI+Mo9bNdCbU4LfD8YJepmkTYoM3ySn1hBef6Nvtg lREkE/MC1rY/IJAN5/I+CnaO6KS7Ag4aN0OOPwAnylEIXqVYRkaLxSiJoVGwjLaA2GAMA+ BA+kWN9fIMFWgA3O35T902S7FHMykeYL++0ToaVt8zVVyXBuraOZFYb6ny+RvO9PZ6RQFO +uM884gIs2IAetXymmUIWVly6xbwpFaN0iLNsEiNSA9Rsav3+n4AigO6Yii21g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=fsfe.org (policy=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: 2.69 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=fsfe.org (policy=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: D55BE1D2C6 X-Spam-Score: 2.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ty+e18avPJxN * gnu/packages/node.scm (node-llparse-builder-bootstrap): New package. --- gnu/packages/node.scm | 71 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index 58e3fd1acc..85e57f5f2d 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -346,6 +346,77 @@ modelled after @code{Node.js} core's debugging technique. It works in @code{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 incorrect import semantics + ;; https://github.com/evanw/esbuild/issues/477 + (substitute* (list + "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 @code{llparse}") + (description + "This package builds graphs for consumption by @code{llparse}.") + (license license:expat))) + (define-public libnode (package/inherit node (name "libnode") -- 2.31.0