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 E0FCB48BDA; Wed, 14 Dec 2022 11:10:07 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 64BA348B6F; Wed, 14 Dec 2022 11:10:05 +0000 (UTC) Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by atuin.qyliss.net (Postfix) with ESMTPS id 57BA948B46 for ; Wed, 14 Dec 2022 11:10:03 +0000 (UTC) Received: by mail-lf1-x12e.google.com with SMTP id p8so9795456lfu.11 for ; Wed, 14 Dec 2022 03:10:03 -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=J1R3IXdeXhkHO1tXdobOqjzIdPe6UQf02pcKQbiOovmdz/olEHn6nAg66J53nYM4Gl /oTE0rD6lR5gkIKFI/T5Wr8TfQ77ATVFKzpaUxdpcy8sZWEPJRDtsQ9Z1hg+oQDjuAGx 4XyA67Djm+wo/EdILATCh2cBtteF1dc/mLtWOeUT7bh8sUNe8lboilpNNwj/ssLFZi1+ 9JjPnyFfDej8/U4EovwncXAdXSO936LtmvrzXKU9VbNbMT/DwSxwBiDlXidsQwTs2U1a F6zdf9qAwEvSp+8GV1lfV9cpmOqFC7xm4GlRMVVYTiuhaS9F8U+ongxD5zV2LnBCdDAy YuDg== 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=TJbaTHBCQoxFiIIQZqWqX3ADVAJDiO2kc5C08xgYlLEfQeKhWq8lDsCb25/muLGXe5 rkyP/pvyRvvdWJEiPvGK7yth0itAdOyTUrMvFgbGFULSA2eQngUWUeFRDa+3G4WgJYpV 4fuQaaxUVho56ahsbGfrm97GLPetfWITu1vCrmWFUn2yF6kk6aDiKZvn6lrmOY9MM09L IRV0ZGWXWLgH35ynpwsDaBzkA8VibZt91UpL55+9cW9UKYS4LcY3vIp0aiPwyCgRsuIO esBT3+2tVB8m57pB+iVCjZI9brAyo/6vOwBBegrQFDFbIX8sWc8sRw93Wn22MhI6HMW6 URjA== X-Gm-Message-State: ANoB5pnJ5hec6WSvHju6vky8OuN0W20DzMN82y8CBf14WrpA3QFjCBY6 4RpiIHBHeJN8kEB5djDmvBtAPtT0TitMFTLz X-Google-Smtp-Source: AA0mqf73QVcJMNxStwIGT6dE+QTa6cMWtFQBDZHq5TczaM+Rc65ctQGH4JD3H1FGPcZyOr9UNDDecw== X-Received: by 2002:a19:5e5e:0:b0:4b5:6042:d136 with SMTP id z30-20020a195e5e000000b004b56042d136mr5184852lfi.22.1671016201835; Wed, 14 Dec 2022 03:10:01 -0800 (PST) Received: from localhost.localdomain ([109.204.204.138]) by smtp.gmail.com with ESMTPSA id m30-20020ac24ade000000b004b4bae1a05asm759076lfp.293.2022.12.14.03.10.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 03:10:01 -0800 (PST) From: Valentin Kharin To: devel@spectrum-os.org Subject: [PATCH 2/2] Documentation: flakes Date: Wed, 14 Dec 2022 13:09:54 +0200 Message-Id: <20221214110954.141676-2-valentin.kharin@unikie.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221214110954.141676-1-valentin.kharin@unikie.com> References: <20221214110954.141676-1-valentin.kharin@unikie.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 5JZUSAJ3X65LDFKMHWRAI6PD7GVAI5N4 X-Message-ID-Hash: 5JZUSAJ3X65LDFKMHWRAI6PD7GVAI5N4 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