all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jaeme Sifat via Guix-patches via <guix-patches@gnu.org>
To: 68115@debbugs.gnu.org
Cc: Jaeme Sifat <jaeme@runbox.com>, Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#68115] [PATCH 18/18] gnu: bat: Update to 0.24.0.
Date: Fri, 29 Dec 2023 19:40:29 -0500	[thread overview]
Message-ID: <1f681ddcdbcaecfff7323757be043bf90c006eac.1703894626.git.jaeme@runbox.com> (raw)
In-Reply-To: <cover.1703894624.git.jaeme@runbox.com>

* gnu/packages/rust-apps.scm (bat): Update to 0.24.0.
[arguments]: Add 'install-extras step for completions and manpage.

Change-Id: Ibcd82fbd297fb84ab265486694126aed77862dd8
---
 gnu/packages/rust-apps.scm | 85 ++++++++++++++++++++++++++------------
 1 file changed, 59 insertions(+), 26 deletions(-)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index df731d4b61..200c8a39ef 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -78,6 +78,7 @@ (define-module (gnu packages rust-apps)
   #:use-module (gnu packages kde)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages networking)
+  #:use-module (gnu packages shells)
   #:use-module (gnu packages ssh)
   #:use-module (gnu packages pcre)
   #:use-module (gnu packages perl)
@@ -213,59 +214,91 @@ (define-public alfis
 (define-public bat
   (package
     (name "bat")
-    (version "0.20.0")
+    (version "0.24.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "bat" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "05sj0chxpai26fhk1k7p5m54v3j7n1x64ayx53mcimsj1skdr77m"))))
+        (base32 "11nc2iv2qhd1bs16yijqq934864ybnmg485rny70scy26xb9xk4x"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
-       (("rust-ansi-colours" ,rust-ansi-colours-1)
-        ("rust-ansi-term" ,rust-ansi-term-0.12)
-        ("rust-atty" ,rust-atty-0.2)
+     (list
+      #:install-source? #f
+      #:cargo-inputs
+      `(("rust-ansi-colours" ,rust-ansi-colours-1)
         ("rust-bincode" ,rust-bincode-1)
-        ("rust-bugreport" ,rust-bugreport-0.4)
+        ("rust-bugreport" ,rust-bugreport-0.5)
         ("rust-bytesize" ,rust-bytesize-1)
-        ("rust-clap" ,rust-clap-2)
-        ("rust-clap" ,rust-clap-2)
-        ("rust-clircle" ,rust-clircle-0.3)
+        ("rust-clap" ,rust-clap-4)
+        ("rust-clircle" ,rust-clircle-0.4)
         ("rust-console" ,rust-console-0.15)
         ("rust-content-inspector" ,rust-content-inspector-0.2)
-        ("rust-dirs-next" ,rust-dirs-next-2)
-        ("rust-encoding" ,rust-encoding-0.2)
+        ("rust-encoding-rs" ,rust-encoding-rs-0.8)
+        ("rust-etcetera" ,rust-etcetera-0.8)
         ("rust-flate2" ,rust-flate2-1)
-        ("rust-git2" ,rust-git2-0.13)
+        ("rust-git2" ,rust-git2-0.18)
         ("rust-globset" ,rust-globset-0.4)
         ("rust-grep-cli" ,rust-grep-cli-0.1)
+        ("rust-home" ,rust-home-0.5)
+        ("rust-nu-ansi-term" ,rust-nu-ansi-term-0.49)
         ("rust-once-cell" ,rust-once-cell-1)
+        ("rust-os-str-bytes" ,rust-os-str-bytes-6.4)
         ("rust-path-abs" ,rust-path-abs-0.5)
+        ("rust-plist" ,rust-plist-1)
         ("rust-regex" ,rust-regex-1)
+        ("rust-run-script" ,rust-run-script-0.10)
         ("rust-semver" ,rust-semver-1)
         ("rust-serde" ,rust-serde-1)
-        ("rust-serde-yaml" ,rust-serde-yaml-0.8)
+        ("rust-serde-yaml" ,rust-serde-yaml-0.9)
         ("rust-shell-words" ,rust-shell-words-1)
-        ("rust-syntect" ,rust-syntect-4)
+        ("rust-syntect" ,rust-syntect-5)
         ("rust-thiserror" ,rust-thiserror-1)
         ("rust-unicode-width" ,rust-unicode-width-0.1)
         ("rust-walkdir" ,rust-walkdir-2)
         ("rust-wild" ,rust-wild-2))
-       #:cargo-development-inputs
-       (("rust-assert-cmd" ,rust-assert-cmd-2)
-        ("rust-nix" ,rust-nix-0.23)
-        ("rust-predicates" ,rust-predicates-2)
-        ("rust-serial-test" ,rust-serial-test-0.5)
+      #:cargo-development-inputs
+      `(("rust-assert-cmd" ,rust-assert-cmd-2)
+        ("rust-expect-test" ,rust-expect-test-1)
+        ("rust-nix" ,rust-nix-0.26)
+        ("rust-predicates" ,rust-predicates-3)
+        ("rust-serial-test" ,rust-serial-test-2)
         ("rust-tempfile" ,rust-tempfile-3)
-        ("rust-wait-timeout" ,rust-wait-timeout-0.2))))
-    (native-inputs
-     (list pkg-config))
-    (inputs
-     (list libgit2 zlib))
+        ("rust-wait-timeout" ,rust-wait-timeout-0.2))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'install-extras
+            (lambda* (#:key outputs #:allow-other-keys)
+              (let* ((out (assoc-ref outputs "out"))
+                     (share (string-append out "/share"))
+                     (bash-completions-dir
+                      (string-append share
+                                     "/bash-completion/completions"))
+                     (zsh-completions-dir
+                      (string-append share
+                                     "/zsh/site-functions"))
+                     (fish-completions-dir
+                      (string-append share
+                                     "/fish/vendor_completions.d"))
+                     (man1 (string-append share "/man/man1")))
+                (mkdir-p bash-completions-dir)
+                (mkdir-p zsh-completions-dir)
+                (mkdir-p fish-completions-dir)
+                (copy-file "assets/completions/bat.bash.in"
+                           (string-append bash-completions-dir "/bat"))
+                (copy-file "assets/completions/bat.zsh.in"
+                           (string-append zsh-completions-dir "/_bat"))
+                (copy-file "assets/completions/bat.fish.in"
+                           (string-append fish-completions-dir
+                                          "/bat.fish"))
+                (rename-file "assets/manual/bat.1.in" "assets/manual/bat.1")
+                (install-file "assets/manual/bat.1" man1)))))))
+    (native-inputs (list pkg-config))
+    (inputs (list libgit2-1.7 zlib))
     (home-page "https://github.com/sharkdp/bat")
-    (synopsis "@command{cat} clone with syntax highlighting and git integration")
+    (synopsis
+     "@command{cat} clone with syntax highlighting and git integration")
     (description
      "@command{bat} is a drop-in @command{cat} replacement featuring syntax
 highlighting for a large number of languages, git integration, and automatic
-- 
2.41.0





  parent reply	other threads:[~2023-12-30  0:44 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-30  0:05 [bug#68115] [PATCH 00/18 rust-team] rust-apps: bat: Update to 0.24 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 01/18] gnu: Add rust-fancy-regex-0.11 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 02/18] gnu: Add rust-syntect-5 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 03/18] gnu: Add rust-fsio-0.4 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 04/18] gnu: Add rust-run-script-0.10 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 05/18] gnu: Add rust-print-bytes-0.7 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 06/18] gnu: Add rust-os-str-bytes-6.4 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 07/18] gnu: Add rust-nu-ansi-term-0.49 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 08/18] gnu: Add rust-etcetera-0.8 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 09/18] gnu: Add rust-clircle-0.4 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 10/18] gnu: rust-clircle-0.3: Allow building Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 11/18] gnu: Add rust-bugreport-0.5 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 12/18] gnu: rust-bugreport-0.4: Update to 0.4.1 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 13/18] gnu: rust-empfindung-0.2: Update to 0.2.6 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 14/18] gnu: Add rust-crc64-2 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 15/18] gnu: rust-crc64-1: Allow building Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 16/18] gnu: Add rust-termcolor-1.2 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` [bug#68115] [PATCH 17/18] gnu: rust-ansi-colours-1: Update to 1.2.2 Jaeme Sifat via Guix-patches via
2023-12-30  0:40 ` Jaeme Sifat via Guix-patches via [this message]
2023-12-30 21:36 ` [bug#68115] [PATCH 18/18] gnu: bat: Update to 0.24.0 Jaeme Sifat via Guix-patches via
2023-12-30 23:40 ` [bug#68115] [PATCH v2REVISION " Jaeme Sifat via Guix-patches via
2024-01-02  9:39 ` bug#68115: [PATCH 00/18 rust-team] rust-apps: bat: Update to 0.24 Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1f681ddcdbcaecfff7323757be043bf90c006eac.1703894626.git.jaeme@runbox.com \
    --to=guix-patches@gnu.org \
    --cc=68115@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    --cc=jaeme@runbox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.