[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
142/308: gnu: gitui: Update to 0.26.3.
From: |
guix-commits |
Subject: |
142/308: gnu: gitui: Update to 0.26.3. |
Date: |
Wed, 4 Dec 2024 16:20:59 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 154cbfcd8d363831e5cb471b5fc1b5650946079b
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Dec 3 20:28:51 2024 +0200
gnu: gitui: Update to 0.26.3.
* gnu/packages/rust-apps.scm (gitui): Update to 0.26.3.
[source]: Add snippet to allow newer versions of crates and to remove
vendor-openssl from the default features.
[arguments]: Remove features flag. Remove cargo-build-flags. Remove
custom 'install phase. Add a phase to set some environment variables to
help gitui build.
[cargo-inputs]: Add rust-parking-lot-core-0.9, rust-two-face-0.4.
Replace rust-asyncgit-0.25 with 0.26, rust-ratatui-0.24 with 0.26,
rust-truncate-0.2 with 1.
[cargo-development-inputs]: Add rust-env-logger-0.11.
Change-Id: I1d99bfe3af364e6cc8488924a7f60925fc97ea5e
---
gnu/packages/rust-apps.scm | 46 ++++++++++++++++++++++------------------------
1 file changed, 22 insertions(+), 24 deletions(-)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 0de04126b4..c627dd998c 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -1072,41 +1072,36 @@ gitoxide CLI.")
(define-public gitui
(package
(name "gitui")
- (version "0.25.2")
+ (version "0.26.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "gitui" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "19xv6bvp0hs1m5y8a0myifvh8xrxrv14wd4gknlsrka0l7d8ijg7"))))
+ (base32 "0pqx3j2spw3xc9wipzcwdxn2l58x2fa803wi528370rl83zznhk6"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin (substitute* "Cargo.toml"
+ (("\"=([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+ (string-append "\"^" version))
+ ;; Remove vendor-openssl from the default features.
+ ((".*\"vendor-openssl\",.*") ""))))))
(build-system cargo-build-system)
(arguments
- `(;; disable vendor-openssl from default flags
- ;; use oniguruma regex lib which is faster and makes gitui 25% smaller
- #:features '("ghemoji" "regex-onig" "trace-libgit")
- #:cargo-build-flags
- '("--release" "--no-default-features")
- #:cargo-test-flags
- '("--release" "--no-default-features"
- "--features" "ghemoji regex-onig trace-libgit"
- "--"
+ `(#:cargo-test-flags
+ '("--release" "--"
;; this test fails with permission denied error
"--skip=test_symbolic_links")
#:install-source? #f
#:phases
(modify-phases %standard-phases
- (replace 'install
- ;; Add --no-default-features to the install phase.
- (lambda* (#:key outputs features #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (invoke "cargo" "install" "--no-track"
- "--path" "."
- "--root" out
- "--no-default-features"
- "--features" (string-join features))))))
+ (add-after 'unpack 'set-release-variable
+ (lambda _
+ (setenv "GITUI_RELEASE" "true")
+ (setenv "BUILD_GIT_COMMIT_ID" "GNUGUIX"))))
#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
- ("rust-asyncgit" ,rust-asyncgit-0.25)
+ ("rust-asyncgit" ,rust-asyncgit-0.26)
("rust-backtrace" ,rust-backtrace-0.3)
("rust-bitflags" ,rust-bitflags-2)
("rust-bugreport" ,rust-bugreport-0.5)
@@ -1127,7 +1122,8 @@ gitoxide CLI.")
("rust-notify" ,rust-notify-6)
("rust-notify-debouncer-mini"
,rust-notify-debouncer-mini-0.4)
("rust-once-cell" ,rust-once-cell-1)
- ("rust-ratatui" ,rust-ratatui-0.24)
+ ("rust-parking-lot-core" ,rust-parking-lot-core-0.9)
+ ("rust-ratatui" ,rust-ratatui-0.26)
("rust-rayon-core" ,rust-rayon-core-1)
("rust-ron" ,rust-ron-0.8)
("rust-scopeguard" ,rust-scopeguard-1)
@@ -1138,12 +1134,14 @@ gitoxide CLI.")
("rust-struct-patch" ,rust-struct-patch-0.4)
("rust-syntect" ,rust-syntect-5)
("rust-tui-textarea" ,rust-tui-textarea-0.4)
+ ("rust-two-face" ,rust-two-face-0.4)
("rust-unicode-segmentation"
,rust-unicode-segmentation-1)
- ("rust-unicode-truncate" ,rust-unicode-truncate-0.2)
+ ("rust-unicode-truncate" ,rust-unicode-truncate-1)
("rust-unicode-width" ,rust-unicode-width-0.1)
("rust-which" ,rust-which-6))
#:cargo-development-inputs
- (("rust-pretty-assertions" ,rust-pretty-assertions-1)
+ (("rust-env-logger" ,rust-env-logger-0.11)
+ ("rust-pretty-assertions" ,rust-pretty-assertions-1)
("rust-tempfile" ,rust-tempfile-3))))
(native-inputs (list pkg-config))
(inputs (list libgit2-1.7 libssh2 openssl zlib))
- 120/308: gnu: Add rust-shadow-rs-0.35., (continued)
- 120/308: gnu: Add rust-shadow-rs-0.35., guix-commits, 2024/12/04
- 117/308: gnu: Add rust-rust-ini-0.21., guix-commits, 2024/12/04
- 119/308: gnu: Add rust-shadow-rs-0.36., guix-commits, 2024/12/04
- 118/308: gnu: rust-serde-json-1: Update to 1.0.133., guix-commits, 2024/12/04
- 113/308: gnu: rust-pest-meta-2: Update to 2.7.14., guix-commits, 2024/12/04
- 125/308: gnu: rust-toml-edit-0.22: Update to 0.22.22., guix-commits, 2024/12/04
- 127/308: gnu: Add rust-wasite-0.1., guix-commits, 2024/12/04
- 131/308: gnu: rust-whoami-1: Update to 1.5.2., guix-commits, 2024/12/04
- 129/308: gnu: Add rust-which-7., guix-commits, 2024/12/04
- 140/308: gnu: Add rust-unicode-truncate-1., guix-commits, 2024/12/04
- 142/308: gnu: gitui: Update to 0.26.3.,
guix-commits <=
- 150/308: gnu: rust-aes-soft-0.4: Mark as deprecated., guix-commits, 2024/12/04
- 154/308: gnu: rust-block-cipher-trait-0.6: Mark package as deprecated., guix-commits, 2024/12/04
- 155/308: gnu: rust-crypto-mac-0.4: Mark package as deprecated., guix-commits, 2024/12/04
- 156/308: gnu: rust-stream-cipher-0.3: Update to 0.3.2., guix-commits, 2024/12/04
- 165/308: gnu: rust-sha1-asm-0.5: Update to 0.5.3., guix-commits, 2024/12/04
- 162/308: gnu: rust-subtle-2: Update to 2.6.1., guix-commits, 2024/12/04
- 161/308: gnu: rust-streebog-0.10: Update to 0.10.2., guix-commits, 2024/12/04
- 176/308: gnu: rust-k256-0.13: Update to 0.13.4., guix-commits, 2024/12/04
- 208/308: gnu: rust-gio-0.20: Update to 0.20.6., guix-commits, 2024/12/04
- 182/308: gnu: rust-crypto-mac-0.11: Update to 0.11.1., guix-commits, 2024/12/04