gnu: rust-analyzer: Fix build of version 2022-01-10.

* gnu/packages/rust-apps.scm (rust-analyzer): Update dependency
rust-notify-5-pre.13.

This fixes the build of `rust-analyzer@2022-01-10`, which required a pinned
version of `rust-notify` (`rust-notify-5-pre.13`) to compile and
rust >= 1.64.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Distopico 2023-08-30 14:58:14 -05:00 committed by Ludovic Courtès
parent 58fe4574a9
commit a4514556df
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
2 changed files with 18 additions and 10 deletions

View file

@ -1780,9 +1780,10 @@ (define-public rust-analyzer
"1ci85bp8xwqrk8nqr8sh6yj8njgd98nhgnhaks2g00c77wwyra41")))) "1ci85bp8xwqrk8nqr8sh6yj8njgd98nhgnhaks2g00c77wwyra41"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:install-source? #f ; virtual manifest `(#:rust ,rust-1.64
#:install-source? #f ; virtual manifest
#:cargo-test-flags #:cargo-test-flags
'("--release" "--" '("--release" "--lib" "--tests" "--"
"--skip=tests::test_version_check" ;it need rustc's version "--skip=tests::test_version_check" ;it need rustc's version
;; FIXME: Guix's rust does not install source in ;; FIXME: Guix's rust does not install source in
;; %out/lib/rustlib/src/rust so "can't load standard library from ;; %out/lib/rustlib/src/rust so "can't load standard library from
@ -1793,12 +1794,19 @@ (define-public rust-analyzer
"--skip=tests::sourcegen::sourcegen_assists_docs" ;need rustfmt "--skip=tests::sourcegen::sourcegen_assists_docs" ;need rustfmt
"--skip=tests::sourcegen_ast::sourcegen_ast" ;same "--skip=tests::sourcegen_ast::sourcegen_ast" ;same
"--skip=tidy::cargo_files_are_tidy" ;not needed
"--skip=tidy::check_licenses" ;it runs cargo metadata "--skip=tidy::check_licenses" ;it runs cargo metadata
"--skip=tidy::check_merge_commits" ;it runs git rev-list "--skip=tidy::check_merge_commits" ;it runs git rev-list
"--skip=tidy::check_code_formatting" ;need rustfmt as cargo fmt "--skip=tidy::check_code_formatting" ;need rustfmt as cargo fmt
"--skip=tidy::generate_grammar" ;same
"--skip=tidy::generate_assists_tests") ;same ;; These tests require rust <= 1.60 and too many packages
;; has as dependency rust-serde-json-1 that use indexmap2
;; and it need rust >= 1.64
"--skip=tests::list_test_macros"
"--skip=tests::test_derive_empty"
"--skip=tests::test_attr_macro"
"--skip=tests::test_fn_like_macro"
"--skip=tests::test_fn_like_macro2"
"--skip=tests::test_derive_error")
#:cargo-development-inputs #:cargo-development-inputs
(("rust-arbitrary" ,rust-arbitrary-1) (("rust-arbitrary" ,rust-arbitrary-1)
("rust-derive-arbitrary" ,rust-derive-arbitrary-1) ("rust-derive-arbitrary" ,rust-derive-arbitrary-1)
@ -1845,7 +1853,7 @@ (define-public rust-analyzer
("rust-memmap2" ,rust-memmap2-0.5) ("rust-memmap2" ,rust-memmap2-0.5)
("rust-mimalloc" ,rust-mimalloc-0.1) ("rust-mimalloc" ,rust-mimalloc-0.1)
("rust-miow" ,rust-miow-0.4) ("rust-miow" ,rust-miow-0.4)
("rust-notify" ,rust-notify-5) ("rust-notify" ,rust-notify-5-pre.13)
("rust-object" ,rust-object-0.28) ("rust-object" ,rust-object-0.28)
("rust-once-cell" ,rust-once-cell-1) ("rust-once-cell" ,rust-once-cell-1)
("rust-parking-lot" ,rust-parking-lot-0.11) ("rust-parking-lot" ,rust-parking-lot-0.11)
@ -1927,7 +1935,7 @@ (define-public rust-analyzer
(chdir "../..") (chdir "../..")
(install-file "LICENSE-MIT" doc) (install-file "LICENSE-MIT" doc)
(install-file "LICENSE-APACHE" doc))))))) (install-file "LICENSE-APACHE" doc)))))))
(native-inputs (list rust-src)) (native-inputs (list rust-src-1.64))
(home-page "https://rust-analyzer.github.io/") (home-page "https://rust-analyzer.github.io/")
(synopsis "Experimental Rust compiler front-end for IDEs") (synopsis "Experimental Rust compiler front-end for IDEs")
(description "Rust-analyzer is a modular compiler frontend for the Rust (description "Rust-analyzer is a modular compiler frontend for the Rust

View file

@ -652,7 +652,7 @@ (define rust-1.63
(rust-bootstrapped-package (rust-bootstrapped-package
rust-1.62 "1.63.0" "1l4rrbzhxv88pnfq94nbyb9m6lfnjwixma3mwjkmvvs2aqlq158z")) rust-1.62 "1.63.0" "1l4rrbzhxv88pnfq94nbyb9m6lfnjwixma3mwjkmvvs2aqlq158z"))
(define rust-1.64 (define-public rust-1.64
(let ((base-rust (let ((base-rust
(rust-bootstrapped-package (rust-bootstrapped-package
rust-1.63 "1.64.0" "018j720b2n12slp4xk64jc6shkncd46d621qdyzh2a8s3r49zkdk"))) rust-1.63 "1.64.0" "018j720b2n12slp4xk64jc6shkncd46d621qdyzh2a8s3r49zkdk")))
@ -891,10 +891,10 @@ (define-public rust
`("procps" ,procps) `("procps" ,procps)
(package-native-inputs base-rust)))))) (package-native-inputs base-rust))))))
(define-public rust-src (define-public rust-src-1.64
(hidden-package (hidden-package
(package (package
(inherit rust) (inherit rust-1.64)
(name "rust-src") (name "rust-src")
(build-system copy-build-system) (build-system copy-build-system)
(native-inputs '()) (native-inputs '())