Skip to content

Commit ee329b7

Browse files
committed
Update metacall to the latest version, update guix to the latest version, update node lts to the latest minor version, change cherow by espree, update nonguix to the latest version.
1 parent 30f2336 commit ee329b7

File tree

4 files changed

+37
-32
lines changed

4 files changed

+37
-32
lines changed

channels/channels.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
(name 'guix)
2222
(url "https://git.savannah.gnu.org/git/guix.git")
2323
(branch "master")
24-
(commit "1327ec822fa6dd396e979efd8d4e1f7479f1d5b3")) ; Thu Oct 7 09:50:26 2021 +0200
24+
(commit "5b35626374783c019ba0911b612e1385f238dfbe")) ; Wed Sep 14 11:07:49 2022 +0200
2525
)

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export GUILE_WARN_DEPRECATED='detailed'
2626
`# Test` `# && guix package -i metacall -L /metacall/source` \
2727
`# Lint` `# && guix lint metacall` \
2828
`# Pack uses --no-grafts option in order to avoid conflicts between duplicated versions` \
29-
`# Pack` && guix pack --no-grafts -S /gnu/bin=bin -S /gnu/etc=etc -S /gnu/lib=lib -RR metacall glibc-utf8-locales nss-certs -L /metacall/nonguix -L /metacall/source | tee build.log \
29+
`# Pack` && guix pack --no-grafts -S /gnu/bin=bin -S /gnu/etc=etc -S /gnu/lib=lib -RR metacall nss-certs -L /metacall/nonguix -L /metacall/source | tee build.log \
3030
`# Copy` && mv `cat build.log | grep "tarball-pack.tar.gz"` /metacall/pack/tarball.tar.gz \
3131
`# Exit` && exit 0 || exit 1
3232

scripts/deps.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ export GUILE_WARN_DEPRECATED='detailed'
2525
&& rm -rf /metacall/nonguix \
2626
&& git clone https://gitlab.com/nonguix/nonguix /metacall/nonguix \
2727
&& cd /metacall/nonguix \
28-
&& `# Fix nonguix version` git checkout bdad9592bb425647b5535a9758f27127f586bc28 \
28+
&& `# Fix nonguix version` git checkout e0951349603581895e0ba61f0e7410368ea1902a \
2929
&& apk del git-deps \
3030
`# Build` && guix build --fallback \
31-
glibc-utf8-locales nss-certs \
31+
nss-certs \
3232
`# dotnet codeanalysis-csharp codeanalysis-common codeanalysis-analyzers` \
33-
cherow typescript libnode-lts \
33+
espree typescript libnode-lts \
3434
-L /metacall/nonguix -L /metacall/source \
3535
`# Exit` && exit 0 || exit 1

source/metacall.scm

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -79,26 +79,26 @@
7979

8080
; NodeJS Loader Dependencies
8181
(define-public libnode-lts
82-
(package/inherit node-lts
83-
(name "libnode-lts")
84-
(arguments
85-
(substitute-keyword-arguments (package-arguments node-lts)
86-
((#:configure-flags flags ''())
87-
`(cons* "--shared" "--without-npm" ,flags))
88-
((#:phases phases '%standard-phases)
89-
`(modify-phases ,phases
90-
(delete 'patch-npm-shebang)
91-
(delete 'patch-node-shebang)))))))
92-
93-
(define-public cherow
82+
(package/inherit node-lts
83+
(name "libnode-lts")
84+
(arguments
85+
(substitute-keyword-arguments (package-arguments node-lts)
86+
((#:configure-flags flags ''())
87+
`(cons* "--shared" "--without-npm" ,flags))
88+
((#:phases phases '%standard-phases)
89+
`(modify-phases ,phases
90+
(delete 'install-npmrc)
91+
(delete 'patch-nested-shebangs)))))))
92+
93+
(define-public espree
9494
(package
95-
(name "cherow")
96-
(version "1.6.9")
95+
(name "espree")
96+
(version "9.4.0")
9797
(source
9898
(origin
9999
(method url-fetch)
100-
(uri (string-append "https://registry.npmjs.org/cherow/-/cherow-" version ".tgz"))
101-
(sha256 (base32 "1m397n6lzj49rhr8742c2cbcyqjrrxa56l197xvrx1sk4jgmzymf"))
100+
(uri (string-append "https://github.com/metacall/core-bootstrap.js-guix-package/releases/download/v0.0.4/espree-" version ".tgz"))
101+
(sha256 (base32 "1w8iy2wx6v7shr99jafi8mgcx7ma64x2mxx71kp1ixs19dg4pxr7"))
102102
)
103103
)
104104
(build-system node-build-system)
@@ -112,10 +112,12 @@
112112
)
113113
)
114114
)
115-
(home-page "https://github.com/cherow/cherow")
116-
(synopsis "A very fast and lightweight, self-hosted javascript parser.")
117-
(description "A very fast and lightweight, standards-compliant,
118-
self-hosted javascript parser with high focus on both performance and stability.")
115+
(home-page "https://github.com/eslint/espree")
116+
(synopsis "An Esprima-compatible JavaScript parser.")
117+
(description "Espree started out as a fork of Esprima v1.2.2, the last stable published released
118+
of Esprima before work on ECMAScript 6 began. Espree is now built on top of Acorn, which has a modular
119+
architecture that allows extension of core functionality. The goal of Espree is to produce output
120+
that is similar to Esprima with a similar API so that it can be used in place of Esprima.")
119121
(license license:expat)
120122
)
121123
)
@@ -250,12 +252,12 @@ for any host, on any OS. TypeScript compiles to readable, standards-based JavaSc
250252
(define-public metacall
251253
(package
252254
(name "metacall")
253-
(version "0.5.20")
255+
(version "0.5.35")
254256
(source
255257
(origin
256258
(method url-fetch)
257259
(uri (string-append "https://github.com/metacall/core/archive/v" version ".tar.gz"))
258-
(sha256 (base32 "0ks6j8ybfjdly311ygi4hsd3h2z0bw9bzlkymdy40xbwnlasjjqw"))
260+
(sha256 (base32 "083awj5x82jnxrinw62ncngrfqxqirrciiwqvk0987jv2dz72gc0"))
259261
)
260262
)
261263
(build-system cmake-build-system)
@@ -319,12 +321,12 @@ for any host, on any OS. TypeScript compiles to readable, standards-based JavaSc
319321
; </packageSources>
320322
; </configuration>" (string-append (assoc-ref inputs "dotnet") "/share/dotnet/shared/Microsoft.NETCore.App/5.0.4/"))))
321323
; #t)))
322-
(add-after 'build 'build-node-loader-bootstrap-cherow
324+
(add-after 'build 'build-node-loader-bootstrap-espree
323325
(lambda* (#:key inputs #:allow-other-keys)
324-
(let* ((output (string-append (getcwd) "/node_modules/cherow"))
325-
(cherow (string-append (assoc-ref inputs "cherow") "/lib/node_modules/cherow/dist/commonjs/cherow.min.js")))
326+
(let* ((output (string-append (getcwd) "/node_modules/espree"))
327+
(espree (string-append (assoc-ref inputs "espree") "/lib/node_modules/espree")))
326328
(mkdir-p output)
327-
(copy-file cherow (string-append output "/index.js")))
329+
(copy-recursively espree output))
328330
#t))
329331
(add-after 'build 'build-ts-loader-bootstrap-typescript
330332
(lambda* (#:key inputs #:allow-other-keys)
@@ -419,6 +421,9 @@ for any host, on any OS. TypeScript compiles to readable, standards-based JavaSc
419421
"-DOPTION_BUILD_PORTS_TS=OFF" ; TODO: Not implemented yet
420422
"-DOPTION_BUILD_PORTS_CS=ON"
421423

424+
; TODO: Enable backtrace support
425+
"-DOPTION_BUILD_PLUGINS_BACKTRACE=OFF"
426+
422427
; Disable coverage
423428
"-DOPTION_COVERAGE=OFF"
424429

@@ -434,7 +439,7 @@ for any host, on any OS. TypeScript compiles to readable, standards-based JavaSc
434439
("node-lts" ,node-lts) ; NodeJS Loader dependency
435440
("libnode-lts" ,libnode-lts) ; NodeJS Loader dependency
436441
("libuv" ,libuv) ; NodeJS Loader dependency
437-
("cherow" ,cherow) ; NodeJS Loader dependency
442+
("espree" ,espree) ; NodeJS Loader dependency
438443
("typescript" ,typescript) ; TypeScript Loader dependency
439444
("gnucobol" ,gnucobol) ; Cobol Loader dependency
440445
("gmp" ,gmp) ; Cobol Loader dependency

0 commit comments

Comments
 (0)