unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Jan Nieuwenhuizen <janneke@gnu.org>
Cc: guix-devel@gnu.org, Mathieu Othacehe <othacehe@gnu.org>
Subject: Re: Providing a Guix System images catalog.
Date: Tue, 26 May 2020 00:08:53 +0200	[thread overview]
Message-ID: <87pnarr7ka.fsf@gnu.org> (raw)
In-Reply-To: <871rn7hhl6.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Mon, 25 May 2020 22:42:29 +0200")

Hi,

Jan Nieuwenhuizen <janneke@gnu.org> skribis:

> Mathieu Othacehe writes:
>
> Hello Mathieu,
>
>> To build a Guix System image, one needs to pick an operating system file
>> and call "guix system disk-image my-os.scm" to get an image.
>>
>> While this works fine on desktop, this is more tricky for the embedded
>> devices. Which operating system to select in "examples" folder? What's
>> the difference between --system and --target, which one should I use?
>>
>> This attached, wip patch, allows to run (on wip-hurd-vm branch):
>>
>> guix system image hurd-disk-image
>>
>> instead of:
>>
>> guix system disk-image --target=i586-pc-gnu  gnu/system/examples/bare-hurd.tmpl
>
> That's pretty nice!

+1!

> I wonder about how this composes; if I'd want to add say a guix-daemon
> service to the bare-hurd, how would I do that?

How about leaving the ‘operating-system’ field of <image> to #f or some
default value, and then filling it in with the argument passed to ‘guix
system’?

Or better: at the API level, we’d look for an “image constructor” (or
“image type”), not an image, where an image constructor is a procedure
that takes an <operating-system> and returns an <image>.  In practice,
you’d wrap that in <image-type> with a ‘name’ field so you can still
look them up by name.

Thoughts?

Ludo’.


  reply	other threads:[~2020-05-25 22:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-25 15:30 Providing a Guix System images catalog Mathieu Othacehe
2020-05-25 20:42 ` Jan Nieuwenhuizen
2020-05-25 22:08   ` Ludovic Courtès [this message]
2020-05-26  7:13     ` Mathieu Othacehe
2020-06-23  8:17     ` Mathieu Othacehe

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pnarr7ka.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=janneke@gnu.org \
    --cc=othacehe@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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).