From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yKQEEYdcgl+MZwAA0tVLHw (envelope-from ) for ; Sun, 11 Oct 2020 01:14:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uLzTDIdcgl8rTAAAbx9fmQ (envelope-from ) for ; Sun, 11 Oct 2020 01:14:47 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8F121940222 for ; Sun, 11 Oct 2020 01:14:46 +0000 (UTC) Received: from localhost ([::1]:44036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRPwj-0008EP-BE for larch@yhetil.org; Sat, 10 Oct 2020 21:14:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRPwW-0008EH-IQ for guix-devel@gnu.org; Sat, 10 Oct 2020 21:14:32 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:16960) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1kRPwT-0000Vm-JY for guix-devel@gnu.org; Sat, 10 Oct 2020 21:14:31 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4C83k85PH0zKm9t for ; Sun, 11 Oct 2020 03:14:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id ovd3KJGVCkcG for ; Sun, 11 Oct 2020 03:14:21 +0200 (CEST) Date: Sun, 11 Oct 2020 04:14:20 +0300 (TRT) From: Lulu To: "guix-devel@gnu.org" Message-ID: <1674337602.21406.1602378860827@office.mailbox.org> Subject: First impressions from delving into Guix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-MBO-SPAM-Probability: X-Rspamd-Score: -4.52 / 15.00 / 15.00 X-Rspamd-Queue-Id: D928913E2 X-Rspamd-UID: 9cfeee Received-SPF: pass client-ip=80.241.56.161; envelope-from=me@erkin.party; helo=mout-p-103.mailbox.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/10 21:14:25 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 0.49 X-TUID: B2DbY4rc1/er Hello everyone! I've been navigating Guix for the past couple days. Here's how it went: At first, I added a skeleton for `guix git log' by copying from `guix git authenticate'. It might be useful to have a generic template for Guix scripts, with conventions and all, by the way, because there isn't much in "(guix)Coding Style". I figured it would make things easier to use Guix System in a VM, so I booted the QCOW2 image using the given libvirt config in "(guix)Running Guix in a VM" (although there were some typos and grammar errors, maybe I should send a patch for them). It worked without a hitch, but I got stumped when it came to configuration. I scanned through the info page to no avail. It's not exactly clear from the documentation that there are no configuration in the Unix sense, but rather single-use configuration scripts (which is admittedly really cool). I spent some time trying to find where the `operating-system' variable is defined, but people helpfully clarified in #guix that I need to make a script declaratively defining the setup I have in mind, then let Guix adapt itself to that automatically. Equipped with that knowledge, I decided I'm better off generating my own VM image once I have a better idea of what sort of Guix setup I want. It might be a good idea to clarify this in the info page. Next, I went back to installing Guix normally on Arch Linux (I tried it on Fedora previously and ran into SELinux issues). The AUR script is a bit wonky due to dependencies so I just used the official binary installer. When I tried to bootstrap Guile, I ran into the problem that Guile 3.0 is unavailable. Indeed, Arch developers have been neglecting to add Guile 3.0 to the official repos. (Scheme is a bit neglected in this respect. The MIT/GNU Scheme package has been broken for a while as well.) So I got a build script off AUR (although I had to patch it because it tried to replace Guile 2.2, which breaks programs like `make' that are linked to libguile2.2) and built Guile. Now that I had a working Guix + Guile 3 setup, I ran into the seemingly common `setlocale' issue which was quickly solved by installing both `glibc-locales` /and/ `glibc-utf8-locales` (and updating them with each glibc update), then setting `$GUILE_LOCPATH' accordingly for both root and my user. I did a `guix pull' and everything was dandy. With no more yaks to shave, I ran finished bootstrapping, ran the post install environment and my subcommand works! Now I can go back to add the functional parts of the script. I'll keep you updated! -- Lulu