Subject: Re: [bug#77909] [PATCH rust-team] gnu: Add television.

From: Hilton Chain <[email-masked]>
Date: Sat, 19 Apr 2025 20:15:20 +0800

On Sat, 19 Apr 2025 18:28:06 +0800,
Gabriel Santos wrote:
>
> * gnu/packages/rust-apps.scm (television): New variable.
> * gnu/packages/rust-crates.scm (television-cargo-inputs): New variable.
>
> Change-Id: I46ce96be71339fe3c1eb127e2f520b62648c4652
> ---
>  gnu/packages/rust-apps.scm   |  31 +++
>  gnu/packages/rust-crates.scm | 364 +++++++++++++++++++++++++++++++++++
>  2 files changed, 395 insertions(+)
>
> diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
> index 02de57bea4..c22494161e 100644
> --- a/gnu/packages/rust-apps.scm
> +++ b/gnu/packages/rust-apps.scm
> @@ -4878,3 +4878,34 @@ (define-public matugen
>       "@command{matugen} generates a 'Material You' color palette based on a
>  specified image or color, easing the process of theme creation.")
>      (license license:gpl2)))
> +
> +(define-public television
> +  (package
> +    (name "television")
> +    (version "0.11.7")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (crate-uri "television" version))
> +       (file-name (string-append name "-" version ".tar.gz"))
> +       (sha256
> +        (base32 "0wsyfvidh8smlfmmmmdc7z96aaz1j4ycxc7qqsxlfw3vdm5hclhn"))))
> +    (build-system cargo-build-system)
> +    (arguments
> +     (list
> +      #:install-source? #f
> +      #:phases
> +      #~(modify-phases %standard-phases
> +          (add-before 'build 'pre-build
> +            (lambda _
> +              (setenv "RUSTONIG_SYSTEM_LIBONIG" "1"))))))
> +    (native-inputs (list pkg-config))
> +    (inputs (cons* oniguruma
> +                   (cargo-inputs 'television)))
> +    (home-page "https://github.com/alexpasmantier/television")
> +    (synopsis "Cross-platform, general purpose fuzzy finder TUI")

TUI -> terminal user interface

> +    (description
> +     "@code{television} is a fuzzy finder in the likes of the @code{fzf} and

@command{television}

> +@code{skim} packages, but with a design based on a television, with search
> +categories being divided in 'channels'.  It uses @code{bat} for file preview.")

'channels' -> \"channels\".  You can use ‘guix show’ to see the difference.

So it depends on bat program?  If so consider patching it to reference bat's
store path and remove this sentence.

> +    (license license:expat)))