[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#47282] [PATCH v2 09/13] gnu: Add node-llparse-builder-bootstrap.
From: |
Timothy Sample |
Subject: |
[bug#47282] [PATCH v2 09/13] gnu: Add node-llparse-builder-bootstrap. |
Date: |
Tue, 30 Mar 2021 01:27:39 -0400 |
From: Jelle Licht <jlicht@fsfe.org>
* 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
- [bug#47282] [PATCH 00/13] node going forward, (continued)
- [bug#47282] [PATCH 00/13] node going forward, Lars-Dominik Braun, 2021/03/23
- [bug#47282] [PATCH 00/13] node going forward, Timothy Sample, 2021/03/30
- [bug#47282] [PATCH v2 01/13] build-system: Rewrite node build system., Timothy Sample, 2021/03/30
- [bug#47282] [PATCH v2 04/13] gnu: Add node-bootstrap., Timothy Sample, 2021/03/30
- [bug#47282] [PATCH v2 05/13] gnu: Add node-semver-bootstrap., Timothy Sample, 2021/03/30
- [bug#47282] [PATCH v2 02/13] gnu: Add libuv-for-node, Timothy Sample, 2021/03/30
- [bug#47282] [PATCH v2 03/13] gnu: node: Use license prefix., Timothy Sample, 2021/03/30
- [bug#47282] [PATCH v2 10/13] gnu: Add node-llparse-frontend-bootstrap., Timothy Sample, 2021/03/30
- [bug#47282] [PATCH v2 09/13] gnu: Add node-llparse-builder-bootstrap.,
Timothy Sample <=
- [bug#47282] [PATCH v2 08/13] gnu: Add node-debug-bootstrap., Timothy Sample, 2021/03/30
- [bug#47282] [PATCH v2 06/13] gnu: Add node-ms-bootstrap., Timothy Sample, 2021/03/30
- [bug#47282] [PATCH v2 07/13] gnu: Add node-binary-search-bootstrap., Timothy Sample, 2021/03/30
- [bug#47282] [PATCH v2 11/13] gnu: Add node-llparse-bootstrap., Timothy Sample, 2021/03/30
- [bug#47282] [PATCH v2 12/13] gnu: Add llhttp-bootstrap., Timothy Sample, 2021/03/30
- [bug#47282] [PATCH v2 13/13] gnu: Add node-lts., Timothy Sample, 2021/03/30