mbox series

[bug#61363,0/2] self: Apply grafts to the outputs of the guix derivation.

Message ID 871qn08uo7.fsf@cbaines.net
Headers show
Series self: Apply grafts to the outputs of the guix derivation. | expand

Message

Christopher Baines Feb. 8, 2023, 7:46 a.m. UTC
These patches mean that grafts apply to the outputs of the guix
derivation, rather than having grafts apply to the derivation
itself. This moves grafting here to work like grafting for packages,
where you can think of the grafted outputs as a transformed variant of
the ungrafted outputs.

I'm looking at this as it'll allow the Guix Data Service to compute the
derivations without grafts, and for these to be useful for substitutes
regardless of whether users are using grafts.


Christopher Baines (2):
  packages: Add explicit-grafting record type to assist with grafts.
  self: Apply grafts to the outputs of the guix derivation.

 build-aux/build-self.scm |  4 ++-
 guix/packages.scm        | 45 +++++++++++++++++++++++++++-
 guix/self.scm            | 65 ++++++++++++++++++++++++++--------------
 3 files changed, 89 insertions(+), 25 deletions(-)

Comments

Christopher Baines Feb. 10, 2023, 9:16 a.m. UTC | #1
The data service comparison is now available for this, and while there
are no differences in the packages, you can see some information.

This is the channel instances before:

  https://data.qa.guix.gnu.org/revision/a582d863465990642d331bc05bf073f47fb80908/channel-instances

and this is after:

  https://data.qa.guix.gnu.org/revision/9cfbb22b556d28a0af345824ae5b3e00eb3f4a15/channel-instances