Woops! Forgot that I also need to reply to the mailing list. Here is the email I've initially sent only to Ludovic Courtès:
On Sat, Apr 26, 2025 at 12:40 PM Ludovic Courtès <l...@gnu.org> wrote: > wrote: > (cond-expand-provide (current-module) '(srfi-135)) I am writing a package definition for SRFI-78, naming it `guile-srfi-78`. I have added: (cond-expand-provide (current-module) '(srfi-78)) to the top of the `./srfi/srfi-78.scm` file, right after `(define-module (srfi srfi-78) ...)`, but I see that within the `guix shell -L . guile guile-srfi-78` environment, GNU Guile's `cond-expand` only knows that the `srfi-78` feature exists after running `use-modules`. The chicken and the egg. You can only check if a module exists after loading it. Is there no way of letting GNU Guile's cond-expand know that a package was installed with that feature? Many thanks, Yuval Langer.