unofficial mirror of gwl-devel@gnu.org
 help / color / mirror / Atom feed
From: Liliana Marie Prikler <liliana.prikler@ist.tugraz.at>
To: Olivier Dion <olivier.dion@polymtl.ca>, gwl-devel@gnu.org
Subject: Re: GWL 0.5 fails with plain packages
Date: Mon, 01 Aug 2022 09:21:59 +0200	[thread overview]
Message-ID: <a388941052b7d587d9c2577a0c07e3642980e6c5.camel@ist.tugraz.at> (raw)
In-Reply-To: <87pmhl0yoi.fsf@laura>

Am Sonntag, dem 31.07.2022 um 17:17 -0400 schrieb Olivier Dion:
> This patch should now have all outputs in _GWL_PROFILE.  There's
> still a problem with the derivation though.
... at the cost of propagating all the additional outputs to processes
that don't need them.

Am Samstag, dem 30.07.2022 um 14:47 -0400 schrieb Olivier Dion:
> I invite you to read this thread
> <https://lists.gnu.org/archive/html/gwl-devel/2022-04/msg00009.html>
> and the one in the following month for all the details.

> Changing all the matching patterns used by GWL to handle new cases
> was deemed too cumbersome.
By whom?

In any case, Guix itself already has a few wrapper types that bundle
packages and outputs.  At the lowest level (as far as I know), there's
<gexp-input>.  Assuming you ignore native?, you can convert a package
and output easily to a <gexp-input> using (gexp-input package output),
and convert it back using the gexp-input-thing and gexp-input-output
accessors.  (Of course, you'd have to restrict your inputs so that only
gexp-inputs whose thing is a package are valid).

On a somewhat higher level there's manifest entries, which you could
create via package->manifest-entry.  Given that GWL is built on top of
manifests it might make sense to allow raw manifest entries and to
transform instances of package+output to manifest entries.

> [T]he short answer is that outputs are not needed by GWL except at a
> single place (gwl/processes.scm:702).
First, I don't think that's true.  Second, if it were, you shouldn't
have that many matching patterns, should you?

Looking at the code around this line, if you were to go with the second
option, you could SRFI-1 partition process-packages into actual
packages and manifest entries, construct one manifest per group and
then merge them.  Alternatively, process packages could already be
lowered to manifests at process construction time, which would also
work for `guix workflow graph'.

Cheers


      reply	other threads:[~2022-08-01  7:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-29 11:45 GWL 0.5 fails with plain packages Liliana Marie Prikler
2022-07-29 15:40 ` Olivier Dion via
2022-07-30 17:03   ` Liliana Marie Prikler
2022-07-30 17:04     ` Liliana Marie Prikler
2022-07-30 18:47     ` Olivier Dion via
2022-07-31  8:16       ` Liliana Marie Prikler
2022-07-31 13:33         ` Olivier Dion via
2022-07-31 14:35           ` Olivier Dion via
2022-07-31 21:17             ` Olivier Dion via
2022-08-01  7:21               ` Liliana Marie Prikler [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.guixwl.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a388941052b7d587d9c2577a0c07e3642980e6c5.camel@ist.tugraz.at \
    --to=liliana.prikler@ist.tugraz.at \
    --cc=gwl-devel@gnu.org \
    --cc=olivier.dion@polymtl.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).