Declaring channel dependencies in the operating-system configuration

2020-12-04 Thread Elais Player
Hi Guix! One thing that I've often found to be annoying was manually adding a channels.scm file to systems, and I've come up with a solution that I'd like to share. For those interested in having their channels.scm be added as part of the system generation process, just do the following. Create

Re: Channel dependencies

2018-10-24 Thread Ludovic Courtès
Hello! Chris Marusich skribis: > l...@gnu.org (Ludovic Courtès) writes: > >> Good point. I agree that it’s similar to the question of propagated >> inputs, which we deal with by reporting an error when a collision >> arises. >> >> So, similarly, I think the safe way would be to report an error

Re: Channel dependencies

2018-10-23 Thread Chris Marusich
l...@gnu.org (Ludovic Courtès) writes: > Good point. I agree that it’s similar to the question of propagated > inputs, which we deal with by reporting an error when a collision > arises. > > So, similarly, I think the safe way would be to report an error when > channel requirements conflict. Wit

Re: Channel dependencies

2018-10-22 Thread Ludovic Courtès
sense to me (sometimes I throw ideas that look great on paper but simply don’t fly in practice!). > From e23225640e723988de215d110e377c93c8108245 Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus > Date: Sat, 13 Oct 2018 08:39:23 +0200 > Subject: [PATCH] guix: Add support for chann

Re: Channel dependencies

2018-10-22 Thread Ludovic Courtès
Hello! Chris Marusich skribis: > Ricardo Wurmus writes: > >> [...] >> >>> Chris raises interesting issues. I think it’s OK to first come up with >>> an implementation that has some limitations but works with the simple >>> use cases we have in mind. >> >> I’ve fixed this according to what we’v

Re: Channel dependencies

2018-10-20 Thread Chris Marusich
Ricardo Wurmus writes: > [...] > >> Chris raises interesting issues. I think it’s OK to first come up with >> an implementation that has some limitations but works with the simple >> use cases we have in mind. > > I’ve fixed this according to what we’ve discussed: when more than one of > the use

Re: Channel dependencies

2018-10-18 Thread Ricardo Wurmus
mentions a commit while the former did not). This is a little verbose because I replaced the simple “append-map” with a more complex “fold” with a composite accumulator to avoid mutation. Suggestions on how to simplify this are welcome! -- Ricardo >From e23225640e723988de215d110e377c93c8108245

Re: Channel dependencies

2018-10-15 Thread Ludovic Courtès
Ricardo Wurmus skribis: > Ludovic Courtès writes: > >> Of course it’s easier to pin all channels when they are directly >> expressed in ~/.config/guix/channels.scm. >> >> Say, I need channel A, which depends on B. >> >> What we could do is that if B is already in ~/.config/guix/channels.scm, >>

Re: Channel dependencies

2018-10-15 Thread Ludovic Courtès
gt; What do you think? I think that’s great. :-) > From 1783c17582906df970c7e68e89d761619a35caeb Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus > Date: Sat, 13 Oct 2018 08:39:23 +0200 > Subject: [PATCH] guix: Add support for channel dependencies. > > * guix/channels.scm (%chan

Re: Channel dependencies

2018-10-15 Thread Ricardo Wurmus
Ludovic Courtès writes: > Of course it’s easier to pin all channels when they are directly > expressed in ~/.config/guix/channels.scm. > > Say, I need channel A, which depends on B. > > What we could do is that if B is already in ~/.config/guix/channels.scm, > then we take this particular B; if

Re: Channel dependencies

2018-10-15 Thread Ludovic Courtès
Hello, Ricardo Wurmus skribis: >>> (define (latest-channel-instances store channels) >>>"Return a list of channel instances corresponding to the latest >>> checkouts of >>> -CHANNELS." >>> - (map (lambda (channel) >>> - (format (current-error-port) >>> - (G_ "Updat

Re: Channel dependencies

2018-10-14 Thread Ricardo Wurmus
Hi Chris, >> (define (latest-channel-instances store channels) >>"Return a list of channel instances corresponding to the latest checkouts >> of >> -CHANNELS." >> - (map (lambda (channel) >> - (format (current-error-port) >> - (G_ "Updating channel '~a' from Git re

Re: Channel dependencies

2018-10-13 Thread Chris Marusich
Hi Ricardo, Ricardo Wurmus writes: > the attached patch allows channel authors to declare other channels as > dependencies of their own channel. > > [...] > > What do you think? It's very cool! > +(define (channel-instance-dependencies instance) > + "Return the list of channels that are decla

Channel dependencies

2018-10-12 Thread Ricardo Wurmus
e---end--->8--- What do you think? -- Ricardo >From 1783c17582906df970c7e68e89d761619a35caeb Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 13 Oct 2018 08:39:23 +0200 Subject: [PATCH] guix: Add support for channel dependencies. * guix/channels.scm (%channel