Subject: [bug#77802] [PATCH rust-team v2] gnu: Add pay-respects.

From: Hilton Chain <[email-masked]>
Date: Wed, 16 Apr 2025 20:34:33 +0800

On Wed, 16 Apr 2025 19:37:49 +0800,
Gabriel Santos wrote:
>
> * gnu/packages/rust-apps.scm (pay-respects): New variable.
> * gnu/packages/rust-crates.scm (pay-respects-cargo-inputs): New variable.
>
> Change-Id: Ic1d49812ba469873eab13da941e5ed0ba15ee52e
> ---
>  gnu/packages/rust-apps.scm   |  30 +++-
>  gnu/packages/rust-crates.scm | 297 +++++++++++++++++++++++++++++++++++
>  2 files changed, 326 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
> index 02de57bea4..fba3d8f67f 100644
> --- a/gnu/packages/rust-apps.scm
> +++ b/gnu/packages/rust-apps.scm
> @@ -38,7 +38,7 @@
>  ;;; Copyright © 2025 Andrew Wong <[email-masked]>
>  ;;; Copyright © 2024 Danny Milosavljevic <[email-masked]>
>  ;;; Copyright © 2024 David Elsing <[email-masked]>
> -;;; Copyright © 2025 Gabriel Santos <[email-masked]>
> +;;; Copyright © 2025 Gabriel Santos <[email-masked]>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -4878,3 +4878,31 @@ (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 pay-respects
> +  (package
> +    (name "pay-respects")
> +    (version "0.7.5")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (crate-uri "pay-respects" version))
> +       (file-name (string-append name "-" version ".tar.gz"))
> +       (sha256
> +        (base32 "0slwj5s53s0vpfvj2hsimaicgyv75av318z6hi1knpqf6adynk1w"))))
> +    (build-system cargo-build-system)
> +    (arguments
> +     (list
> +      #:install-source? #f))
> +    (inputs (cargo-inputs 'pay-respects))
> +    (home-page "https://codeberg.org/iff/pay-respects")
> +    (synopsis "Correct mistyped console command by inputting f")
> +    (description
> +     "@command{pay-respects} is a program that either corrects mistyped commands,
> +or suggests a correction after the user inputs @command{f}.  This is similar to
> +the @code{thefuck} package.
> +
> +Additional support for instaling packages adding missing binaries is available.
> +For this, a user just has to index their store with the @command{guix locate}
> +command.")
> +    (license license:agpl3+)))

Minor issue: markup in synopsis, and I'd rephrase the description a bit.

I'll modify the patch and commit it later, see the actual change then :)