* Extend channel-build-system?
@ 2025-01-06 23:29 Nicolas Graves
2025-01-07 2:18 ` Suhail Singh
2025-01-08 8:48 ` Ludovic Courtès
0 siblings, 2 replies; 5+ messages in thread
From: Nicolas Graves @ 2025-01-06 23:29 UTC (permalink / raw)
To: guix-devel
Hi Guix,
I am struggling to build a channel with properly defined metadata and/or
proper dependencies. This is because the current channel-builds-system
is only able to build a guix channel, rather than any channel.
Also, the error reporting is not great when trying to build another channel:
```
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f
```
IIUC, this is because in `channel-instance-derivations` needs a
`core-instance`. In the context of another channel than guix, it could
be extracted either from channel metadata dependencies or from inputs.
WDYT? Do you already know of a way to do this?
--
Best regards,
Nicolas Graves
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Extend channel-build-system?
2025-01-06 23:29 Extend channel-build-system? Nicolas Graves
@ 2025-01-07 2:18 ` Suhail Singh
2025-01-07 7:01 ` Nicolas Graves
2025-01-08 8:48 ` Ludovic Courtès
1 sibling, 1 reply; 5+ messages in thread
From: Suhail Singh @ 2025-01-07 2:18 UTC (permalink / raw)
To: Nicolas Graves; +Cc: guix-devel
Nicolas Graves <ngraves@ngraves.fr> writes:
> This is because the current channel-builds-system is only able to
> build a guix channel, rather than any channel.
Perhaps this is obvious to others, but for the benefit of others (such
as myself), could you please share some specifics?
--
Suhail
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Extend channel-build-system?
2025-01-07 2:18 ` Suhail Singh
@ 2025-01-07 7:01 ` Nicolas Graves
2025-01-08 8:00 ` Suhail Singh
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Graves @ 2025-01-07 7:01 UTC (permalink / raw)
To: Suhail Singh; +Cc: guix-devel
On 2025-01-06 21:18, Suhail Singh wrote:
> Nicolas Graves <ngraves@ngraves.fr> writes:
>
>> This is because the current channel-builds-system is only able to
>> build a guix channel, rather than any channel.
>
> Perhaps this is obvious to others, but for the benefit of others (such
> as myself), could you please share some specifics?
Some docstrings state that directly (despite the rather unituitive
channel-build-system != guix-channel-build-system). But I basically
discovered that through error digging.
For instance in the manual :
The resulting package is a Guix instance of the given channel(s), similar
to how @command{guix time-machine} would build it.
For RDE, I'm trying to get that built with a guile-build-system which is
quite close to what I wanted actually. I'm at peace without an
extension of the build-system, but we should probably at least make it
more visible in the manual and doctrings that this is only for a Guix
channel and cannot be user to build any channel you found online.
--
Best regards,
Nicolas Graves
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Extend channel-build-system?
2025-01-07 7:01 ` Nicolas Graves
@ 2025-01-08 8:00 ` Suhail Singh
0 siblings, 0 replies; 5+ messages in thread
From: Suhail Singh @ 2025-01-08 8:00 UTC (permalink / raw)
To: Nicolas Graves; +Cc: Suhail Singh, guix-devel
Nicolas Graves <ngraves@ngraves.fr> writes:
> I'm at peace without an extension of the build-system, but we should
> probably at least make it more visible in the manual and doctrings
> that this is only for a Guix channel and cannot be user to build any
> channel you found online.
I probably would've wasted some time chasing some dead-ends if I were in
your shoes as well. If not an extension of the build system, I propose
that we make this a little more explicit in the manual. As well, a
small example in the Cookbook may not be a bad idea either.
While I don't have commit access, I'd be happy to review the patch(es)
as needed.
--
Suhail
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Extend channel-build-system?
2025-01-06 23:29 Extend channel-build-system? Nicolas Graves
2025-01-07 2:18 ` Suhail Singh
@ 2025-01-08 8:48 ` Ludovic Courtès
1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2025-01-08 8:48 UTC (permalink / raw)
To: Nicolas Graves; +Cc: guix-devel
Hi Nicolas,
Nicolas Graves <ngraves@ngraves.fr> skribis:
> I am struggling to build a channel with properly defined metadata and/or
> proper dependencies. This is because the current channel-builds-system
> is only able to build a guix channel, rather than any channel.
AFAICS, ‘channel-build-system’ requires at least the ‘guix’ channel, but
it can also be passed additional channels via #:channels.
Did that not work for you? How did you get the error you mentioned?
As always, one cannot just build one channel: you always have to have
the ‘guix’ channel together with the other channels you care about.
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-01-08 8:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-06 23:29 Extend channel-build-system? Nicolas Graves
2025-01-07 2:18 ` Suhail Singh
2025-01-07 7:01 ` Nicolas Graves
2025-01-08 8:00 ` Suhail Singh
2025-01-08 8:48 ` Ludovic Courtès
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.