Hi Nicolas,

CC: core-team

On Mon, 17 Mar 2025 at 10:53, ngra...@gmx.com wrote:

> I would like to make that metadata available at the build-system
> level. This would require setting procedure properties on builder
> functions, in every build-system, like so:
>
> (set-procedure-properties!
>  gnu-build
>  `((imported-modules . ,%default-gnu-imported-modules)
>    (modules . ,%default-gnu-modules)))
>
> This would allow things like that:
>
> (let* ((lower (build-system-lower target-build-system))
>        (imported-modules (procedure-property lower 'imported-modules))
>        (modules (procedure-property lower 'modules)))
>   (values (whatever-proc lower args)
>           imported-modules
>           modules))
>
> Where target-build-system could be any build-system. I guess changing
> properties doesn't change derivations, so this would not lead to a world
> rebuild.

As more or less discussed IRL, I think it could be nice.

What other people think?

Cheers,
simon



Reply via email to