all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: more package transformations: overrides
Date: Sat, 25 Mar 2023 22:26:16 -0400	[thread overview]
Message-ID: <87pm8wp7sn.fsf@gmail.com> (raw)
In-Reply-To: <87r0tdgqbu.fsf@elephly.net> (Ricardo Wurmus's message of "Sat, 25 Mar 2023 09:55:53 +0100")

Hello,

Ricardo Wurmus <rekado@elephly.net> writes:

> Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>
>>> I think it would improve usability to be able to use the *same* names in
>>> an override file.  Got a package with name “python-pytorch” in that
>>> file?  It replaces “python-pytorch” in the graph.
>>
>> It's still a bit too abstract in my mind.  Could you please provide a
>> skeletton of what the overrides file would look like?
>
> It would just like a file you’d pass to “guix build -f”, except that it
> wouldn’t need to evaluate to a single package.  It would contain a bunch
> of package definitions.
>
> This would replace the need to set GUIX_PACKAGE_PATH (or pass -L) to a
> directory containing a module, and set up package transformations for
> each package.
>
> It would also be lighter than requiring the use of a manifest, which can
> get rather complicated when more than a few packages are to be replaced
> in the graph.

I see.  I can see how that could be convenient, but I'm a bit wary of
introducing yet another way to rewrite inputs (we have the CLI and the
manifest already).  On the other hand, the stdin/--args-file trick could
be universally useful and be a way to leverage the CLI in a more
user/vcs-friendly way (the CLI should be easier to approach than writing
a package definition -- if it's not let's discuss how to improve it), so
perhaps we could start with implementing that?

-- 
Thanks,
Maxim


      parent reply	other threads:[~2023-03-26  2:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-22  9:55 more package transformations: overrides Ricardo Wurmus
2023-03-22 11:00 ` Josselin Poiret
2023-03-22 14:38 ` Ludovic Courtès
2023-03-22 18:09 ` Maxim Cournoyer
2023-03-22 20:36   ` Ricardo Wurmus
2023-03-23  2:56     ` Maxim Cournoyer
2023-03-23  9:32       ` Ricardo Wurmus
2023-03-24  8:21         ` Sarthak Shah
2023-03-24 12:30           ` Maxim Cournoyer
2023-03-24 14:05             ` Sarthak Shah
2023-03-24 16:09               ` Maxim Cournoyer
2023-03-24 12:32         ` Maxim Cournoyer
     [not found]           ` <87r0tdgqbu.fsf@elephly.net>
2023-03-26  2:26             ` Maxim Cournoyer [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

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

  git send-email \
    --in-reply-to=87pm8wp7sn.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /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.
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.