Subject: bug#57801: 'inferior-with-channels' is eager, making it hard to use in channels

From: Maxime Devos <[email-masked]>
Date: Thu, 15 Sep 2022 17:46:15 +0200

On 14-09-2022 19:18, Lukasz Olszewski wrote:
> Additionally this fails even when used like this:
> 
> (define inferior
>    (mlambda ()
>      (inferior-for-channels channels)))

This makes it lazy (not eager).

> (lookup-inferior-packages (inferior) "somepackage")

You are running (inferior) directly after defining the lazy thing, 
making it effectively _eager_ (not lazy) again.

Instead of doing this on the top-level, move the 
lookup-inferior-packages to inside the 'inputs' or 'native-inputs', to 
_keep_ it lazy.

Greetings,
Maxime.