Subject: [bug#36841] [PATCH] build/cargo-build-system: Patch cargo checksums.

From: Ivan Petkov <[email-masked]>
Date: Mon, 29 Jul 2019 18:44:31 -0700

Hi Efraim,

> On Jul 29, 2019, at 12:04 PM, Efraim Flashner <[email-masked]> wrote:
> 
> +;; After patching the 'patch-generated-file-shebangs phase any vendored crates
> +;; will have a mismatch on their checksum.
> +(define* (patch-cargo-checksums #:key
> +                                (vendor-dir "guix-vendor")
> +                                #:allow-other-keys)

[snip]

> +    (replace 'install install)
> +    (add-after 'patch-generated-file-shebangs 'patch-cargo-checksums patch-cargo-checksums)))

I can’t quite remember the order the phases run in off the top of my head. Would it be possible to
make the configure/checksum generation phase run after shebang-patching (or ensure the patching
happens first)? It would avoid having to checksum all the files twice that way…

—Ivan