Subject: Re: [bug#47163] Using package transformations declaratively

From: Ludovic Courtès <[email-masked]>
Date: Wed, 17 Mar 2021 18:17:12 +0100

Hi,

zimoun <[email-masked]> skribis:

> There is several ways to have package transformations at the manifest
> level.  One is:
>
> (use-modules (guix transformations))
>
> (define transform1
>   (options->transformation
>     '((with-c-toolchain . "hello=gcc-toolchain@8"))))
>
> (packages->manifest
>   (list (transform1 (specification->package "hello"))))

On this topic, do not miss this section of the fine manual:
<https://guix.gnu.org/manual/en/html_node/Defining-Package-Variants.html>.
:-)

Ludo’.