[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#47282] [PATCH 10/13] gnu: node: Add node-llparse-frontend-bootstrap
From: |
Jelle Licht |
Subject: |
[bug#47282] [PATCH 10/13] gnu: node: Add node-llparse-frontend-bootstrap. |
Date: |
Sat, 20 Mar 2021 15:59:22 +0100 |
* gnu/packages/node.scm (node-llparse-frontend-bootstrap): New package.
---
gnu/packages/node.scm | 60 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index 85e57f5f2d..41c50e209e 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -417,6 +417,66 @@ modelled after @code{Node.js} core's debugging technique.
It works in
"This package builds graphs for consumption by @code{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 incorrect import semantics
+ ;; https://github.com/evanw/esbuild/issues/477
+ (substitute* (list "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 @code{llparse} compiler")
+ (description "This package is a frontend for the @code{llparse}
+compiler.")
+ (license license:expat)))
+
(define-public libnode
(package/inherit node
(name "libnode")
--
2.31.0
- [bug#47282] [PATCH 00/13] node going forward, Jelle Licht, 2021/03/20
- [bug#47282] [PATCH 01/13] build-system: Rewrite node build system., Jelle Licht, 2021/03/20
- [bug#47282] [PATCH 02/13] gnu: Add libuv-node, Jelle Licht, 2021/03/20
- [bug#47282] [PATCH 07/13] gnu: node: Add node-binary-search-bootstrap., Jelle Licht, 2021/03/20
- [bug#47282] [PATCH 05/13] gnu: node: Add node-semver-bootstrap., Jelle Licht, 2021/03/20
- [bug#47282] [PATCH 11/13] gnu: node: Add node-llparse-bootstrap., Jelle Licht, 2021/03/20
- [bug#47282] [PATCH 04/13] gnu: node: Add node-bootstrap., Jelle Licht, 2021/03/20
- [bug#47282] [PATCH 03/13] gnu: node: Use license prefix., Jelle Licht, 2021/03/20
- [bug#47282] [PATCH 10/13] gnu: node: Add node-llparse-frontend-bootstrap.,
Jelle Licht <=
- [bug#47282] [PATCH 12/13] gnu: node: Add llhttp-bootstrap., Jelle Licht, 2021/03/20
- [bug#47282] [PATCH 13/13] gnu: node: Add node-lts, Jelle Licht, 2021/03/20
- [bug#47282] [PATCH 08/13] gnu: node: Add node-debug-bootstrap., Jelle Licht, 2021/03/20
- [bug#47282] [PATCH 06/13] gnu: node: Add node-ms-bootstrap., Jelle Licht, 2021/03/20
- [bug#47282] [PATCH 09/13] gnu: node: Add node-llparse-builder-bootstrap., Jelle Licht, 2021/03/20
- [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