emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#68275: closed ([PATCH 00/11 rust-team] gnu: Add git-delta.)


From: GNU bug Tracking System
Subject: bug#68275: closed ([PATCH 00/11 rust-team] gnu: Add git-delta.)
Date: Mon, 08 Jan 2024 18:13:02 +0000

Your message dated Mon, 8 Jan 2024 20:12:19 +0200
with message-id <ZZw7AydkgaOEcowI@3900XT>
and subject line Re: [bug#68275] [PATCH 11/11] gnu: Add git-delta.
has caused the debbugs.gnu.org bug report #68275,
regarding [PATCH 00/11 rust-team] gnu: Add git-delta.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
68275: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68275
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH 00/11 rust-team] gnu: Add git-delta. Date: Fri, 5 Jan 2024 23:50:12 -0500
Notables:

:: Changed rust-bat to be a unique library instead of a binary.

:: Added exact version rust-bytelines-2.2 and version 2 as well.

:: Updated some crates and allowed building.

:: git-delta requires mdbook to build a special manual? Thoughts on packaging
mdbook and having that be a manual since no apparent manpage is provided (at
least from what I could gleam, please correct me if I'm wrong).

Jaeme Sifat (11):
  gnu: Add rust-sysinfo-0.28.
  gnu: rust-smol-str-0.1: Update to 0.1.24.
  gnu: Add rust-palette-derive-0.6.
  gnu: Add rust-palette-0.6.
  gnu: rust-chrono-humanize-0.2: Update to 0.2.3.
  gnu: Add rust-bytelines-2.2.
  gnu: Add rust-bytelines-2.
  gnu: Add rust-bat-0.22.
  gnu: rust-bat-0.18: Refactor package as library.
  gnu: Add rust-box-drawing-0.1.
  gnu: Add git-delta.

 gnu/packages/crates-graphics.scm |  73 +++++++++++-
 gnu/packages/crates-io.scm       | 190 +++++++++++++++++++++++++------
 gnu/packages/rust-apps.scm       |  87 +++++++++++++-
 3 files changed, 311 insertions(+), 39 deletions(-)


base-commit: d15ee33955b704a5eb43ddb6535ae1a38034884a
--
2.41.0



--- End Message ---
--- Begin Message --- Subject: Re: [bug#68275] [PATCH 11/11] gnu: Add git-delta. Date: Mon, 8 Jan 2024 20:12:19 +0200
Thanks! Patches pushed to the rust-team branch.

On Fri, Jan 05, 2024 at 11:52:42PM -0500, Jaeme Sifat wrote:
> * gnu/packages/rust-apps.scm (git-delta): New variable.
> 
> Change-Id: I2319ab35b01842cb66b88df13fa64f31de4f20e5
> ---
>  gnu/packages/rust-apps.scm | 87 +++++++++++++++++++++++++++++++++++++-
>  1 file changed, 86 insertions(+), 1 deletion(-)
> 
> diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
> index 6a224762a8..70d7cbfbb8 100644
> --- a/gnu/packages/rust-apps.scm
> +++ b/gnu/packages/rust-apps.scm
> @@ -25,7 +25,7 @@
>  ;;; Copyright © 2022 Greg Hogan <code@greghogan.com>
>  ;;; Copyright © 2023 Arnav Andrew Jose <arnav.jose@gmail.com>
>  ;;; Copyright © 2023 Wilko Meyer <w@wmeyer.eu>
> -;;; Copyright © 2023 Jaeme Sifat <jaeme@runbox.com>
> +;;; Copyright © 2023, 2024 Jaeme Sifat <jaeme@runbox.com>
>  ;;; Copyright © 2023 Steve George <steve@futurile.net>
>  ;;;
>  ;;; This file is part of GNU Guix.
> @@ -2532,6 +2532,91 @@ (define-public git-absorb
>  It will then write @code{fixup!} commits for each of those changes.")
>      (license license:bsd-3)))
>  
> +(define-public git-delta
> +  (package
> +    (name "git-delta")
> +    (version "0.16.5")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (crate-uri "git-delta" version))
> +       (file-name (string-append name "-" version ".tar.gz"))
> +       (sha256
> +        (base32 "1pvy5jcpj3xzf2b8k9d5xwwamwlv9pzsx6p2yq61am38igafg9qb"))))

I added a snippet to allow using versions newer than 2.2.2 for
rust-bytelines and only kept the package for bytelines-2.5.0.

> +    (build-system cargo-build-system)
> +    (arguments
> +     (list
> +      #:install-source? #f
> +      #:cargo-inputs
> +      `(("rust-ansi-colours" ,rust-ansi-colours-1)
> +        ("rust-ansi-term" ,rust-ansi-term-0.12)
> +        ("rust-anyhow" ,rust-anyhow-1)
> +        ("rust-atty" ,rust-atty-0.2)
> +        ("rust-bat" ,rust-bat-0.22)
> +        ("rust-bitflags" ,rust-bitflags-2)
> +        ("rust-box-drawing" ,rust-box-drawing-0.1)
> +        ("rust-bytelines" ,rust-bytelines-2.2)
> +        ("rust-chrono" ,rust-chrono-0.4)
> +        ("rust-chrono-humanize" ,rust-chrono-humanize-0.2)
> +        ("rust-clap" ,rust-clap-4)
> +        ("rust-console" ,rust-console-0.15)
> +        ("rust-ctrlc" ,rust-ctrlc-3)
> +        ("rust-dirs" ,rust-dirs-4)
> +        ("rust-git2" ,rust-git2-0.16)
> +        ("rust-grep-cli" ,rust-grep-cli-0.1)
> +        ("rust-itertools" ,rust-itertools-0.10)
> +        ("rust-lazy-static" ,rust-lazy-static-1)
> +        ("rust-palette" ,rust-palette-0.6)
> +        ("rust-pathdiff" ,rust-pathdiff-0.2)
> +        ("rust-regex" ,rust-regex-1)
> +        ("rust-serde" ,rust-serde-1)
> +        ("rust-serde-json" ,rust-serde-json-1)
> +        ("rust-shell-words" ,rust-shell-words-1)
> +        ("rust-smol-str" ,rust-smol-str-0.1)
> +        ("rust-syntect" ,rust-syntect-5)
> +        ("rust-sysinfo" ,rust-sysinfo-0.28)
> +        ("rust-unicode-segmentation" ,rust-unicode-segmentation-1)
> +        ("rust-unicode-width" ,rust-unicode-width-0.1)
> +        ("rust-vte" ,rust-vte-0.11)
> +        ("rust-xdg" ,rust-xdg-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"))

These I moved onto one line since they weren't too long.

> +                     (zsh-completions-dir
> +                      (string-append share
> +                                     "/zsh/site-functions"))
> +                     (fish-completions-dir
> +                      (string-append share
> +                                     "/fish/vendor_completions.d")))
> +                (mkdir-p bash-completions-dir)
> +                (mkdir-p zsh-completions-dir)
> +                (mkdir-p fish-completions-dir)
> +                (copy-file "etc/completion/completion.bash"
> +                           (string-append bash-completions-dir
> +                                          "/delta"))
> +                (copy-file "etc/completion/completion.zsh"
> +                           (string-append zsh-completions-dir
> +                                          "/_delta"))
> +                (copy-file "etc/completion/completion.fish"
> +                           (string-append fish-completions-dir
> +                                          "/delta.fish"))))))))
> +    (native-inputs (list git-minimal pkg-config))
> +    (inputs (list libgit2 openssl zlib))
> +    (home-page "https://github.com/dandavison/delta";)
> +    (synopsis "Syntax-highlighting pager for git")
> +    (description
> +     "This package provides a syntax-highlighting pager for @command{git}.  
> It uses
> +@command{bat} for syntax highlighting and provides many features such as 
> advanced
> +keybindings, word-level diff highlighting, syntax highlighting for 
> @command{grep} and
> +a stylized box presentation.")
> +    (license license:expat)))
> +
>  (define-public rust-xremap
>    (package
>      (name "rust-xremap")
> -- 
> 2.41.0
> 
> 
> 

-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]