patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Valentin Kharin <valentin.kharin@unikie.com>
To: devel@spectrum-os.org
Cc: Valentin Kharin <valentin.kharin@unikie.com>
Subject: [PATCH v2 2/2] Documentation: flakes
Date: Tue, 27 Dec 2022 11:16:04 +0200	[thread overview]
Message-ID: <20221227091604.18039-2-valentin.kharin@unikie.com> (raw)
In-Reply-To: <20221227091604.18039-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



  reply	other threads:[~2022-12-27  9:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-27  9:16 [PATCH v2 1/2] Add flakes support Valentin Kharin
2022-12-27  9:16 ` Valentin Kharin [this message]
2023-01-10 20:27 ` 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=20221227091604.18039-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).