me
/
guix
Archived
1
0
Fork 0

gnu: tree-sitter-cli: Fix build with 0.20.8 version.

* gnu/packages/tree-sitter.scm (tree-sitter-cli)[arguments]
<#:cargo-inputs>: Update rust-tiny-http and rust-webbrowser.
<#:cargo-development-inputs>: Add rust-ctor, rust-rand, rust-tempfile and
rust-unindent.
<#:phases>: Remove unneeded 'delete-cargo-lock phase.

Modified-by: Efraim Flashner <efraim@flashner.co.il>
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
master
Pierre Langlois 2023-05-07 14:26:22 +01:00 committed by Efraim Flashner
parent 84c70fd18a
commit de490476ca
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 7 additions and 6 deletions

View File

@ -141,18 +141,19 @@ This package includes the @code{libtree-sitter} runtime library.")
("rust-semver" ,rust-semver-1) ("rust-semver" ,rust-semver-1)
("rust-smallbitvec" ,rust-smallbitvec-2) ("rust-smallbitvec" ,rust-smallbitvec-2)
("rust-thiserror" ,rust-thiserror-1) ("rust-thiserror" ,rust-thiserror-1)
("rust-tiny-http" ,rust-tiny-http-0.8) ("rust-tiny-http" ,rust-tiny-http-0.12)
("rust-toml" ,rust-toml-0.5) ("rust-toml" ,rust-toml-0.5)
("rust-walkdir" ,rust-walkdir-2) ("rust-walkdir" ,rust-walkdir-2)
("rust-webbrowser" ,rust-webbrowser-0.5) ("rust-webbrowser" ,rust-webbrowser-0.8)
("rust-which" ,rust-which-4)) ("rust-which" ,rust-which-4))
#:cargo-development-inputs #:cargo-development-inputs
`(("rust-pretty-assertions" ,rust-pretty-assertions-0.7)) `(("rust-ctor" ,rust-ctor-0.1)
("rust-pretty-assertions" ,rust-pretty-assertions-0.7)
("rust-rand" ,rust-rand-0.8)
("rust-tempfile" ,rust-tempfile-3)
("rust-unindent" ,rust-unindent-0.2))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'delete-cargo-lock
(lambda _
(delete-file "Cargo.lock")))
(add-after 'unpack 'patch-node (add-after 'unpack 'patch-node
(lambda _ (lambda _
(substitute* "cli/src/generate/mod.rs" (substitute* "cli/src/generate/mod.rs"