* Package inputs specific to an output
@ 2022-09-12 16:07 Olivier Dion via
2022-09-12 19:15 ` Csepp
0 siblings, 1 reply; 2+ messages in thread
From: Olivier Dion via @ 2022-09-12 16:07 UTC (permalink / raw)
To: help-guix
Hi,
Is there a way to make a package that has inputs that will only be
installed when a given output is selected?
For example, I have a library that has a set of inputs for linking
against them. The project also come with optional executable tools that
use the library but also other inputs. I don't want these extra inputs
to be installed along the library if the user does not want the tools.
--
Olivier Dion
oldiob.dev
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Package inputs specific to an output
2022-09-12 16:07 Package inputs specific to an output Olivier Dion via
@ 2022-09-12 19:15 ` Csepp
0 siblings, 0 replies; 2+ messages in thread
From: Csepp @ 2022-09-12 19:15 UTC (permalink / raw)
To: Olivier Dion; +Cc: help-guix
Olivier Dion via <help-guix@gnu.org> writes:
> Hi,
>
> Is there a way to make a package that has inputs that will only be
> installed when a given output is selected?
>
> For example, I have a library that has a set of inputs for linking
> against them. The project also come with optional executable tools that
> use the library but also other inputs. I don't want these extra inputs
> to be installed along the library if the user does not want the tools.
Normal inputs are only installed iff the package references them.
Propagated inputs are the ones that are "always installed" (they also
show up in the profile), I'm not aware of any way to make them only be
referenced from certain outputs, but in general packages should try to
avoid using them and use regular inputs whenever possible.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-12 19:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-12 16:07 Package inputs specific to an output Olivier Dion via
2022-09-12 19:15 ` Csepp
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.