Subject: [bug#55903] [PATCH v8 01/41] gnu: Add go-github-com-zenhack-go-notmuch.

From: "(" <[email-masked]>
Date: Mon, 22 Aug 2022 07:26:53 +0100

Hello again!

On Mon Aug 22, 2022 at 7:11 AM BST, ( wrote:
> +           #~(modify-phases %standard-phases
> +               (add-after 'unpack 'patch-notmuch-path
> +                 (lambda* (#:key inputs import-path #:allow-other-keys)
> +                   (substitute* (find-files (string-append
> +                                             "src/" import-path)
> +                                            "\\.go$")
> +                     (("// #cgo LDFLAGS:.*$")
> +                      (string-append
> +                       "// #cgo LDFLAGS: -lnotmuch "
> +                       "-L" #$(this-package-input "notmuch") "/lib\n"
> +                       "// #cgo CFLAGS: "
> +                       "-I" #$(this-package-input "notmuch") "/include\n")))))

Turns out you're not supposed to embed package references with snippets, because
source code must be position-independent, so this new patchset uses a phase to
add direct notmuch references to the go.notmuch package instead.

    -- (