Subject: bug#65225: [bug#66640] [PATCH 0/2] Build profile hooks for the right system

From: Ludovic Courtès <[email-masked]>
Date: Mon, 23 Oct 2023 21:53:06 +0200

Simon Tournier <[email-masked]> skribis:

> Do I understand correctly when I consider that
> ’(efi-bootloader-profile-hook manifest)’ pass #false as ’system’ and
> then it is ’set-guile-for-build’ that sets ’(%current-system)’?

Yes.

> Somehow, my question is about the readability of default values.
>
> Why not,
>
>     #:system (or system (%current-system))
>
> for all the hooks?

Because that value would be captured at call time rather than at
monadic-bind time.  See Josselin’s excellent explanation of this trap:

  https://issues.guix.gnu.org/65225#4-lineno34

HTH!

Ludo’.