unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: more package transformations: overrides
Date: Wed, 22 Mar 2023 21:36:52 +0100	[thread overview]
Message-ID: <87pm90ikou.fsf@elephly.net> (raw)
In-Reply-To: <87bkkkhd4l.fsf@gmail.com>


Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

> Hi Ricardo,
>
> Ricardo Wurmus <rekado@elephly.net> writes:
>
>> Hi Guix,
>>
>> when using package transformations the command line can become crowded
>> very quickly.  Sometimes I would like to be able to provide a file
>> containing a set of alternative packages that are used recursively in
>> the package dependency graph, as some sort of override.
>>
>> What do you think about extending package transformations to allow for
>> reading override packages from a file?  The replacements would happen by
>> matching package names, so a package named “python-pytorch” in my
>> overrides file would replace the original “python-pytorch” package in
>> the input graph.  All these packages would be applied as overrides
>> together.
>
> Would you not be better off using a manifest in this case, using the
> Guix API to apply the transformations?

I do do that, but I find that this is quite a big jump for many people.
We have people who know how to add channels, or build a small custom
library by use the importer for simple packages, but who shy away from
using transformations in code.

Considering that the transformations API assumes that you understand
that higher order functions exist and what to do with them, I think it
would be good to offer a slightly less advanced method of overriding
packages.

Manifests can do anything, but this also makes them rather intimidating
for many of my colleagues.

-- 
Ricardo


  reply	other threads:[~2023-03-22 20:41 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 [this message]
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

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://guix.gnu.org/

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

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

	https://git.savannah.gnu.org/cgit/guix.git

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).