summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/node.scm132
1 files changed, 66 insertions, 66 deletions
diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index b00344d1361..61526240f97 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -539,72 +539,72 @@ Node.js and web browsers.")
539 (license license:expat))) 539 (license license:expat)))
540 540
541(define-public node-llparse-builder-bootstrap 541(define-public node-llparse-builder-bootstrap
542 (package 542 ;; The binary-search package is vendored in 1351b75. It's not unvendored
543 (name "node-llparse-builder") 543 ;; here because it's small, and as a bootstrap package doesn't bring
544 (version "1.5.2") 544 ;; deduplication to a profile.
545 (source 545 (let ((commit "b04a70c8a3344adcfb8f5132528f7ae9852af79b")
546 (origin 546 (revision "1"))
547 (method git-fetch) 547 (package
548 (uri (git-reference 548 (name "node-llparse-builder")
549 (url "https://github.com/nodejs/llparse-builder.git") 549 (version (git-version "1.5.2" revision commit))
550 (commit (string-append "v" version)))) 550 (source
551 (file-name (git-file-name name version)) 551 (origin
552 (sha256 552 (method git-fetch)
553 (base32 553 (uri (git-reference
554 "0r82iiwqsb73k2fxw7842rjjiixllxpyc6yl9cq4ma6ybkf6xmzm")) 554 (url "https://github.com/nodejs/llparse-builder.git")
555 (modules '((guix build utils))) 555 (commit commit)))
556 (snippet 556 (file-name (git-file-name name version))
557 '(begin 557 (sha256
558 ;; Fix imports for esbuild. 558 (base32 "08wsxyz7hhaf1n3jgvlnhhaaafq576wmpf4k4whihz012i4sxncg"))
559 ;; https://github.com/evanw/esbuild/issues/477 559 (modules '((guix build utils)))
560 (substitute* '("src/node/invoke.ts" 560 (snippet
561 "src/node/base.ts" 561 '(begin
562 "src/node/consume.ts" 562 ;; Fix imports for esbuild.
563 "src/node/match.ts" 563 ;; https://github.com/evanw/esbuild/issues/477
564 "src/node/error.ts" 564 (substitute* '("src/node/invoke.ts"
565 "src/node/pause.ts" 565 "src/node/base.ts"
566 "src/edge.ts" 566 "src/node/consume.ts"
567 "src/utils.ts" 567 "src/node/match.ts"
568 "src/loop-checker/index.ts" 568 "src/node/error.ts"
569 "src/loop-checker/lattice.ts" 569 "src/node/pause.ts"
570 "src/code/field.ts" 570 "src/edge.ts"
571 "src/span-allocator.ts") 571 "src/utils.ts"
572 (("\\* as assert") "assert") 572 "src/loop-checker/index.ts"
573 (("\\* as debugAPI") "debugAPI")) 573 "src/loop-checker/lattice.ts"
574 #t)))) 574 "src/code/field.ts"
575 (build-system node-build-system) 575 "src/span-allocator.ts")
576 (arguments 576 (("\\* as assert") "assert"))))))
577 `(#:node ,node-bootstrap 577 (build-system node-build-system)
578 #:tests? #f 578 (arguments
579 #:phases 579 `(#:node ,node-bootstrap
580 (modify-phases %standard-phases 580 #:tests? #f
581 (add-after 'patch-dependencies 'delete-dependencies 581 #:phases
582 (lambda _ 582 (modify-phases %standard-phases
583 (modify-json (delete-dependencies 583 (add-after 'patch-dependencies 'delete-dependencies
584 `("@types/debug" 584 (lambda _
585 "@types/mocha" 585 (modify-json (delete-dependencies
586 "@types/node" 586 `("@types/debug"
587 "mocha" 587 "@types/mocha"
588 "ts-node" 588 "@types/node"
589 "tslint" 589 "mocha"
590 "typescript"))))) 590 "ts-node"
591 (replace 'build 591 "tslint"
592 (lambda* (#:key inputs #:allow-other-keys) 592 "typescript")))))
593 (let ((esbuild (search-input-file inputs "/bin/esbuild"))) 593 (replace 'build
594 (invoke esbuild 594 (lambda* (#:key inputs #:allow-other-keys)
595 "--platform=node" 595 (let ((esbuild (search-input-file inputs "/bin/esbuild")))
596 "--outfile=lib/builder.js" 596 (invoke esbuild
597 "--bundle" 597 "--platform=node"
598 "src/builder.ts"))))))) 598 "--outfile=lib/builder.js"
599 (inputs 599 "--bundle"
600 (list node-binary-search-bootstrap node-debug-bootstrap)) 600 "src/builder.ts")))))))
601 (native-inputs 601 (native-inputs
602 (list esbuild)) 602 (list esbuild))
603 (home-page "https://github.com/nodejs/llparse-builder#readme") 603 (home-page "https://github.com/nodejs/llparse-builder#readme")
604 (properties '((hidden? . #t))) 604 (properties '((hidden? . #t)))
605 (synopsis "Graph builder for consumption by llparse") 605 (synopsis "Graph builder for consumption by llparse")
606 (description "This package builds graphs for consumption by llparse.") 606 (description "This package builds graphs for consumption by llparse.")
607 (license license:expat))) 607 (license license:expat))))
608 608
609(define-public node-llparse-frontend-bootstrap 609(define-public node-llparse-frontend-bootstrap
610 (package 610 (package