[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/14: gnu: node: Add node-llparse-builder-bootstrap.
From: |
guix-commits |
Subject: |
09/14: gnu: node: Add node-llparse-builder-bootstrap. |
Date: |
Fri, 4 Dec 2020 07:02:29 -0500 (EST) |
jlicht pushed a commit to branch wip-node-14
in repository guix.
commit c5033937023e27aa4affdb5ee911a1e45fe273df
Author: Jelle Licht <jlicht@fsfe.org>
AuthorDate: Fri Oct 23 22:55:12 2020 +0200
gnu: node: Add node-llparse-builder-bootstrap.
* gnu/packages/node.scm (node-llparse-builder-bootstrap): New package.
---
gnu/packages/node.scm | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 73 insertions(+)
diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index 5a16c95..0f47df1 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -354,6 +354,79 @@ 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"
+ "--external:debug"
+ "--external:binary-search"
+ "--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)
- 05/14: gnu: node: Add node-semver-bootstrap., (continued)
- 05/14: gnu: node: Add node-semver-bootstrap., guix-commits, 2020/12/04
- 13/14: gnu: node: Add node-lts, guix-commits, 2020/12/04
- 01/14: build-system: Rewrite node build system., guix-commits, 2020/12/04
- 06/14: gnu: node: Add node-ms-bootstrap., guix-commits, 2020/12/04
- 07/14: gnu: node: Add node-binary-search-bootstrap., guix-commits, 2020/12/04
- 03/14: gnu: node: Use license prefix., guix-commits, 2020/12/04
- 02/14: gnu: Add libuv-node, guix-commits, 2020/12/04
- 04/14: gnu: node: Add node-bootstrap., guix-commits, 2020/12/04
- 08/14: gnu: node: Add node-debug-bootstrap., guix-commits, 2020/12/04
- 11/14: gnu: node: Add node-llparse-bootstrap., guix-commits, 2020/12/04
- 09/14: gnu: node: Add node-llparse-builder-bootstrap.,
guix-commits <=
- 12/14: gnu: node: Add llhttp-bootstrap., guix-commits, 2020/12/04
- 10/14: gnu: node: Add node-llparse-frontend-bootstrap., guix-commits, 2020/12/04
- 14/14: import: Add binary npm importer., guix-commits, 2020/12/04