From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id B21D61EEEC; Tue, 27 Dec 2022 09:16:37 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 495071EED4; Tue, 27 Dec 2022 09:16:35 +0000 (UTC) Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by atuin.qyliss.net (Postfix) with ESMTPS id 544A11EED2 for ; Tue, 27 Dec 2022 09:16:33 +0000 (UTC) Received: by mail-lf1-x129.google.com with SMTP id y25so18831803lfa.9 for ; Tue, 27 Dec 2022 01:16:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unikie.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oEuUzLtfzMLMRHgenqkxcKEUoyEE6zG5jHOSeVd2pNY=; b=Cw0sMbU5yOYiMYgW0xQxj6R74kh78OZwtL7ljb72gbLZwcW6aYWL6B8r09gmrmskTo xmYM1QcpiLQFKXs2seuIgT68tEyb6JdI8t5UluOCOzxtZdItCe/lSTD/eIRtczQ4LP1J csxAJH/QW1KfluPv9LCUkPavI0ynWOgufI89CuvNJtl3wWmGcvtsV+0nID46uXb76z6j qFiODvi7pviEpz9uA/SYDr3/GVmmbH+V2lPqGt//HTbiYpmpxF+s4f1WBBjjeR8zUjIY r1J1VO5piBH3WeaFkBjQkW07I0w21ttBj1JhHq0vkr2j+yXLShfMrUThdiY3RE/n2UQN MUlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oEuUzLtfzMLMRHgenqkxcKEUoyEE6zG5jHOSeVd2pNY=; b=T8bBKYWthsuSQxXqv5/QY/yDxBB9Xz1hG0gfnHz2Cw7qDeQElqLIkoh/YKYFLPnq2x jkxYAY2pWufAG49Na2mg9GyL4qItipSCM3+hYebrXInOuJGWT4gUfZQyR0AEUxNm8reH 9wfRnuAZGpL5hmD4WkbCrOsuN40QvwgxnrsovZd03LqVvwi64LuGoL8lVzEXZ31Cvyq2 jAlTIRTxzrgY0BDCAL6uNs2uQw4gvVhhOfwlnn23DC3KJyL/myf6bZU/jtMVcruBUMVj JPuWMC3g0G0TW0o0jrl9adcJ/LKD6jmaruTAQsy+5oUvarPv7WiiLnUufACME6TMgFNi pt0A== X-Gm-Message-State: AFqh2kofioS8NEf1lHSGR47OtoIIFNrfqEqtblsMUPOhhYUDCsXzt9sb wZLprAiaYTryLIzuWK6XE22tn0Vz/Hesp/zQ X-Google-Smtp-Source: AMrXdXszwoKADUpdpxgF1zbkMX9MjP2sU0MwBA7HWtdYJXpVN2jdMoQdI6Ncf34YVFSDFxYy1HA4rw== X-Received: by 2002:a05:6512:3e05:b0:4b9:a91c:b0c9 with SMTP id i5-20020a0565123e0500b004b9a91cb0c9mr6798591lfv.7.1672132592188; Tue, 27 Dec 2022 01:16:32 -0800 (PST) Received: from localhost.localdomain (dyfl5jgq-fgrzw6rlb23t-4.rev.dnainternet.fi. [2001:14bb:113:9395:bf21:5d49:69c9:daf]) by smtp.gmail.com with ESMTPSA id v10-20020a2e7a0a000000b0027b52a73b47sm1553367ljc.18.2022.12.27.01.16.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Dec 2022 01:16:31 -0800 (PST) From: Valentin Kharin To: devel@spectrum-os.org Subject: [PATCH v2 2/2] Documentation: flakes Date: Tue, 27 Dec 2022 11:16:04 +0200 Message-Id: <20221227091604.18039-2-valentin.kharin@unikie.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221227091604.18039-1-valentin.kharin@unikie.com> References: <20221227091604.18039-1-valentin.kharin@unikie.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: R2BZWBBDS2GAJLC3BZLSZG4WDVOK2ZY6 X-Message-ID-Hash: R2BZWBBDS2GAJLC3BZLSZG4WDVOK2ZY6 X-MailFrom: valentin.kharin@unikie.com X-Mailman-Rule-Hits: header-match-devel.spectrum-os.org-0 X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1 CC: Valentin Kharin X-Mailman-Version: 3.3.5 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Valentin Kharin --- .../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