unofficial mirror of gwl-devel@gnu.org
 help / color / mirror / Atom feed
From: Olivier Dion via <gwl-devel@gnu.org>
To: Liliana Marie Prikler <liliana.prikler@ist.tugraz.at>, gwl-devel@gnu.org
Subject: Re: GWL 0.5 fails with plain packages
Date: Sat, 30 Jul 2022 14:47:38 -0400	[thread overview]
Message-ID: <871qu230ad.fsf@laura> (raw)
In-Reply-To: <d54930df8dbfbe6ad7f3da3b1ff1f472df6a36f8.camel@ist.tugraz.at>

On Sat, 30 Jul 2022, Liliana Marie Prikler <liliana.prikler@ist.tugraz.at> wrote:

> but it raises more questions.  Like "why is package-ouput a object-
> property?"

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.

But the short answer is that outputs are not needed by GWL except at a
single place (gwl/processes.scm:702).  Changing all the matching
patterns used by GWL to handle new cases was deemed too cumbersome.  I
found that object properties -- or data layering -- was an elegant and
none invasive solution for adding outputs support to GWL.  I just forgot
to add this particular case that you had :-).

Maybe Ricardo has more to say on that.

> and "wouldn't this break if someone needed two different
> outputs of the same package in a process or even anywhere in the
> workflow?"

I don't think so.  I have a workflow that requires `out' and `debug'
outputs to instrument packages.  Works flawlessly.

Example:
--8<---------------cut here---------------start------------->8---
use-modules : gnu packages base
use-modules : gnu packages gcc

process greet
  packages
    list
      list hello "out"
      list gcc "out"
      list gcc "lib"
      list gcc "debug"
  # { hello }

workflow simple-wisp
  processes
    list greet
--8<---------------cut here---------------end--------------->8---

-- 
Olivier Dion
oldiob.dev


  parent reply	other threads:[~2022-07-30 18:47 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 [this message]
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

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=871qu230ad.fsf@laura \
    --to=gwl-devel@gnu.org \
    --cc=liliana.prikler@ist.tugraz.at \
    --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).