all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: david.larsson@selfhosted.xyz
To: ison <ison@airmail.cc>
Cc: help-guix@gnu.org
Subject: Re: A few questions about channels
Date: Thu, 25 Apr 2019 10:18:07 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LNX.2.21.9999.1904251017290.13609@localhost> (raw)
In-Reply-To: <20190424224654.td7fwnjjf4hnguyc@cf0>

On Wed, 24 Apr 2019, ison wrote:

> Several questions about channels have been on my mind which I haven't been able to find any documentation on. So I figured I would ask them all in one place since they seem like fairly standard questions that could help others setting up channels in the future as well.
>
> 1) Is it possible to make a channel from a local git repository? (That is to say, a directory on the local machine initialized as a git repository)
>

Yes, for example, cat ~/.config/guix/channels.scm

(cons (channel
        (name 'my-personal-packages)
        (url "file:///home/myuser/src/my-guix-packages"))
       %default-channels)

where the my-guix-packages directory is a git repo which has committed packageModN.scm files.

> 2) Is it possible to use private remote repositories as channels? The issue here seems to be one of authentication. I'm wonder if there is (or should be) an "authentication" field one would add to the channel definition in the channels.scm file.
>
I agree it would be nice to have. The git-fetch method is defined here: https://github.com/guix-mirror/guix/blob/012bf5c4c03e30633f137960bd0677e204c638a7/guix/build/git.scm and I think it can be modified without too much effort to include an argument for the -key flag to the git command. I am not sure though whether git-fetch will have access to the home user's directory in case you provide let's say ~/.ssh/id_rsa as argument. Another possibility would be to check the GIT_SSH_COMMAND env variable. I suppose you also need to make sure ssh is available for git-fetch.

--
Vänliga hälsningar / Best Regards
David L

  reply	other threads:[~2019-04-25  8:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-24 22:46 A few questions about channels ison
2019-04-25  8:18 ` david.larsson [this message]
2019-04-30 19:41   ` Oleg Pykhalov
2019-05-06  3:21 ` Chris Marusich
2019-05-06 21:13   ` ison
2019-05-06 21:43     ` Ricardo Wurmus
2019-05-07  0:45       ` ison

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=alpine.LNX.2.21.9999.1904251017290.13609@localhost \
    --to=david.larsson@selfhosted.xyz \
    --cc=help-guix@gnu.org \
    --cc=ison@airmail.cc \
    /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.