Dear Pauk, On Fri, 03 Jul 2020 at 18:56, Paul Garlick <pgarl...@tourbillion-technology.com> wrote:
> One outstanding puzzle for me is to figure out how to test a package > definition in a new channel. For example, I have cloned the guix-past > repository and started to add a new package. However, what is the best > workflow to attempt a build from the channel? Do you add the channel > to the git checkout of guix? I do not know if it is the best but I do: guix build -L path/to/clone the-package guix install -L path/to/clone the-package -p /tmp/test /tmp/test/bin/the-package Otherwise, I put in a channels.scm file something like: --8<---------------cut here---------------start------------->8--- (list (channel (name 'kikoo) (url "file:////home/simon/path/to/clone") (branch "master")) (channel (name 'guix) ; avoid to recompute heavy derivations and build modules (url "https://git.savannah.gnu.org/git/guix.git") (commit "000c7a0f70248ccf9dc774ef23da3e26d142c610")) --8<---------------cut here---------------end--------------->8--- where commit is something I already have in /gnu/store, then: guix pull -C channels.scm -p /tmp/loc /tmp/loc/bin/guix install foo -p /tmp/test but it is less convenient. All the best, simon