all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: brettg@posteo.net
To: help-guix <help-guix@gnu.org>
Cc: Help-Guix <help-guix-bounces+brettg=posteo.net@gnu.org>
Subject: Re: System-level inferiors.
Date: Wed, 20 Nov 2019 02:29:51 +0100	[thread overview]
Message-ID: <059f8c95fe21fd470431cf99da382605@posteo.net> (raw)
In-Reply-To: <07a85a27c89f415d79aa1211f13966fd@posteo.net>



On 19.11.2019 21:02, brettg@posteo.net wrote:
> Hey all,
> 
> I am experimenting with the inferior system a little bit. I am
> attempting to see if I can specify a specific version of the
> linux-libre kernel to be taken from an inferior and applied to my
> system configuration.
> 
> (define kernel-channel-inf
>   ;; This is the old revision from which
>   ;; we will obtain our desired kernel version.
>   (list (channel
>  (name 'guix)
>  (url "https://git.savannah.gnu.org/git/guix.git")
>  (commit
>           "fd41243c819635795f4e4bdef1e2823db5234e24"))))
> 
> (define kernel-inferior-proc
>   ;; An inferior representing `kernel-channel-inf'.
>   (inferior-for-channels kernel-channel-inf))
> 
> (operating-system
> 
>   ...
> 
>  (kernel (lookup-inferior-packages
>   kernel-inferior-proc "linux-libre" "4.19.81"))
> 
> It took me some experimenting to come up with this, in that
> experimenting the channel revision was built and cached. However, when
> I run `guix system build config.scm` with the above code snippet, the
> process just hangs on
> 
> Updating channel 'guix' from Git repository at
> 'https://git.savannah.gnu.org/git/guix.git'...
> 
> I am not sure how to proceed to achieve what I am hoping for. Any 
> thoughts?
> 
> Brett Gilio

Update, I used guix time-machine to ensure that this specific build of 
linux-libre 4.19.81 was available in the store, so now it is not 
hanging:

Instead, it is telling me:

guix/gexp.scm:201:36: In procedure lookup-compiler:
In procedure struct_vtable: Wrong type argument in position 1 (expecting 
struct): (#<inferior-package linux-libre@4.19.81 7f13870f8900>)

Will keep investigating a way to do this.

Brett Gilio

  reply	other threads:[~2019-11-20  1:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-19 20:02 System-level inferiors brettg
2019-11-20  1:29 ` brettg [this message]
2019-11-20  1:35   ` brettg
2019-11-20  1:55     ` brettg
2019-11-20  2:05       ` brettg
2019-11-20 10:57         ` Pierre Neidhardt
2019-11-20 16:13           ` brettg

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=059f8c95fe21fd470431cf99da382605@posteo.net \
    --to=brettg@posteo.net \
    --cc=help-guix-bounces+brettg=posteo.net@gnu.org \
    --cc=help-guix@gnu.org \
    /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.