Subject: Re: [bug#54123] [PATCH 2/5] gnu: Add go-github-com-niemeyer-pretty.

From: Maxime Devos <[email-masked]>
Date: Wed, 23 Feb 2022 13:39:00 +0100

Efraim Flashner schreef op wo 23-02-2022 om 12:29 [+0200]:
> +    (arguments
> +     '(#:import-path "github.com/niemeyer/pretty"
> +       #:phases
> +       (modify-phases %standard-phases
> +         (add-after 'unpack 'patch-source
> +           (lambda _
> +             ;; https://github.com/kr/pretty/pull/66
> +             (substitute* "src/github.com/niemeyer/pretty/formatter.go"
> +               (("string\\(i\\)") "string(rune(i))")))))))

The 'patches' and 'snippet' fields of 'origin' are for patching
source code.  While patching in a phase works, an origin snippet
seems a more natural place to me.

Greetings,
Maxime.