From: Valentin Kharin <valentin.kharin@unikie.com>
To: devel@spectrum-os.org
Cc: Valentin Kharin <valentin.kharin@unikie.com>
Subject: [PATCH 2/2] Documentation: flakes
Date: Wed, 14 Dec 2022 13:09:54 +0200 [thread overview]
Message-ID: <20221214110954.141676-2-valentin.kharin@unikie.com> (raw)
In-Reply-To: <20221214110954.141676-1-valentin.kharin@unikie.com>
Signed-off-by: Valentin Kharin <valentin.kharin@unikie.com>
---
.../installation/getting-spectrum.adoc | 20 +++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/Documentation/installation/getting-spectrum.adoc b/Documentation/installation/getting-spectrum.adoc
index 6aec34f..ec13145 100644
--- a/Documentation/installation/getting-spectrum.adoc
+++ b/Documentation/installation/getting-spectrum.adoc
@@ -22,6 +22,13 @@ If you want to try Spectrum out to get a feel for it, without
installing it, you can run it in a development VM with some example
applications.
+This builds just enough of Spectrum to try it out in a VM, but it will
+still take a very long time.
+
+You can use one of the following methods to build Spectrum.
+
+=== Default
+
[source,shell]
----
git clone https://spectrum-os.org/git/spectrum
@@ -32,8 +39,17 @@ cd spectrum/host/rootfs
nix-shell -I nixpkgs=../../../nixpkgs-spectrum --run 'make run'
----
-This builds just enough of Spectrum to try it out in a VM, but it will
-still take a very long time.
+=== Flakes
+
+Flakes is more hermetic, fast, and reproducable way of building.
+
+[source,shell]
+----
+git clone https://spectrum-os.org/git/spectrum && cd spectrum
+nix develop .#rootfs && cd host/rootfs/ && make run
+----
+
+For more information on flakes, see https://nixos.wiki/wiki/Flakes[NixOS Wiki].
== Building Installer
--
2.38.1
next prev parent reply other threads:[~2022-12-14 11:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-14 11:09 [PATCH 1/2] Add flakes support Valentin Kharin
2022-12-14 11:09 ` Valentin Kharin [this message]
2022-12-21 11:21 ` [PATCH 2/2] Documentation: flakes Alyssa Ross
2022-12-21 11:19 ` [PATCH 1/2] Add flakes support Alyssa Ross
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=20221214110954.141676-2-valentin.kharin@unikie.com \
--to=valentin.kharin@unikie.com \
--cc=devel@spectrum-os.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://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
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 NNTP newsgroup(s).