On Mon, Aug 16, 2021 at 10:08:34AM +0200, Philippe SWARTVAGHER wrote: > Hello, > > I'm trying to use a manifest file to define a package variant which adds > an option to the configure phase: > > ``` > > (use-modules (inria storm)) > > (define starpu-maxnodes1 >   (package >     (inherit starpu) >     (arguments >       (substitute-keyword-arguments (package-arguments starpu) >                                     ((#:configure-flags flags '()) >                                      `(cons "--enable-maxnodes=1" > ,flags)))))) > > ``` > > When I'm trying to build this variant, guix can't find it: > > ``` > > % guix build -c 2 -m starpu-maxnodes1.scm starpu-maxnodes1 > guix build: erreur : starpu-maxnodes1 : paquet inconnu > > ``` > > I don't see what I'm doing wrong. Any idea ? > > Just if you want to try these exact commands, StarPU is a package > defined in this channel: Inherit inherits everything except for what you override, so your package can be refered to as starpu-maxnodes1 when using it as an input for another package (for example), but to build it from the command line it still has the original name of "starpu". Also, I haven't tried running 'guix build -m manifest.scm package-in-manifest', so I don't know if that works or not. > ``` > > (channel >         (name 'guix-hpc) >         (url "https://gitlab.inria.fr/guix-hpc/guix-hpc.git") >         (commit >           "fa8cc70bc428c08a625a533f778537314be64ce7")) > > ``` > > (I didn't subscribe to help-guix mailing list, so please keep me as > recipient of your answers.) > -- Efraim Flashner אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted