Subject: [bug#57410] [PATCH] gnu: Add ecbuild.

From: Maxime Devos <[email-masked]>
Date: Sun, 28 Aug 2022 17:22:08 +0200

On 25-08-2022 19:27, Antero Mejr via Guix-patches via wrote:
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url"https://github.com/ecmwf/ecbuild")
> +                    (commit version)))
> +              (file-name (git-file-name name version))
> +              (sha256
> +               (base32
> +                "1mcjdqwvkzli7xj2wlnr4hshfh3wi5rs585f9nvqjfpgwvn0ym14"))
> +              (modules '((guix build utils)))
> +              (snippet #~(substitute* "bin/ecbuild"
> +                           (("cmake=\\$\\{cmakebin:=cmake\\}")
> +                            (string-append "cmake=${cmakebin:="
> +                                           #$cmake-minimal "/bin/cmake}"))))))

This 'source' is only usable inside Guix as it embeds store items, which 
makes "guix build --source" less useful for sharing source code (see: 
(guix)Snippets versus Phases).

Try doing this in a snippet instead.

Greetings,
Maxime.