Subject: [PATCH 04/10] gnu: Remove node-llparse-bootstrap.

From: Ashvith Shetty <[email-masked]>
Date: Tue, 18 Jun 2024 18:08:06 +0530

* gnu/packages/node.scm (node-llparse-bootstrap): Delete variable.

Change-Id: I414164d3d69cba067659c2f81d6c93f09b96f5f6
---
 gnu/packages/node.scm | 64 -------------------------------------------
 1 file changed, 64 deletions(-)

diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index c8b8cc69a9..3474f2eabb 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -571,70 +571,6 @@ (define-public node-llparse-frontend-bootstrap
     (description "This package is a frontend for the llparse compiler.")
     (license license:expat)))
 
-(define-public node-llparse-bootstrap
-  (package
-    (name "node-llparse")
-    (version "7.1.0")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/indutny/llparse.git")
-             (commit (string-append "v" version))))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32
-         "10da273iy2if88hp79cwms6c8qpsl1fkgzll6gmqyx5yxv5mkyp6"))
-       (modules '((guix build utils)))
-       (snippet
-        '(begin
-           ;; Fix imports for esbuild.
-           ;; https://github.com/evanw/esbuild/issues/477
-           (substitute* '("src/compiler/index.ts"
-                          "src/implementation/c/node/base.ts"
-                          "src/implementation/c/node/table-lookup.ts"
-                          "src/implementation/c/compilation.ts"
-                          "src/implementation/c/helpers/match-sequence.ts"
-                          "src/implementation/c/code/mul-add.ts")
-             (("\\* as assert") "assert")
-             (("\\* as debugAPI") "debugAPI"))
-           #t))))
-    (build-system node-build-system)
-    (arguments
-     `(#:node ,node-bootstrap
-       #:tests? #f
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'patch-dependencies 'delete-dependencies
-           (lambda args
-             (delete-dependencies `("@types/debug"
-                                    "@types/mocha"
-                                    "@types/node"
-                                    "esm"
-                                    "llparse-test-fixture"
-                                    "mocha"
-                                    "ts-node"
-                                    "tslint"
-                                    "typescript"))))
-         (replace 'build
-           (lambda* (#:key inputs #:allow-other-keys)
-             (let ((esbuild (search-input-file inputs "/bin/esbuild")))
-               (invoke esbuild
-                       "--platform=node"
-                       "--outfile=lib/api.js"
-                       "--bundle"
-                       "src/api.ts")))))))
-    (inputs
-     (list node-debug-bootstrap node-llparse-frontend-bootstrap))
-    (native-inputs
-     (list esbuild))
-    (home-page "https://github.com/nodejs/llparse#readme")
-    (properties '((hidden? . #t)))
-    (synopsis "Compile incremental parsers to C code")
-    (description "This package offers an API for compiling an incremental
-parser definition into a C output.")
-    (license license:expat)))
-
 (define-public llhttp-bootstrap
   (package
     (inherit llhttp)
-- 
2.45.1