From mboxrd@z Thu Jan 1 00:00:00 1970 From: Satoru KURASHIKI Subject: Re: about basic operation of guix sd Date: Wed, 15 Apr 2020 23:23:31 +0900 Message-ID: References: <87lfn7mfb4.fsf@devup.no> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45632) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOix9-0005dT-D0 for help-guix@gnu.org; Wed, 15 Apr 2020 10:23:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOix8-0003Qu-8C for help-guix@gnu.org; Wed, 15 Apr 2020 10:23:47 -0400 Received: from mail-yb1-xb36.google.com ([2607:f8b0:4864:20::b36]:38897) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOix8-0003QQ-2g for help-guix@gnu.org; Wed, 15 Apr 2020 10:23:46 -0400 Received: by mail-yb1-xb36.google.com with SMTP id l5so77774ybf.5 for ; Wed, 15 Apr 2020 07:23:45 -0700 (PDT) In-Reply-To: <87lfn7mfb4.fsf@devup.no> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org hi, thank you for your reply. On Wed, Apr 8, 2020 at 1:27 AM Marius Bakke wrote: > > Hi Satoru, and welcome to Guix! I hope you will enjoy your stay. :-) > > Satoru KURASHIKI writes: > > > hi, > > > > I happen to know Guix SD recently, and trying to tinkering it. > > FYI the 'SD' name has been deprecated in favor of 'Guix System'. Ah, I see, so there are several bindings...:) > Syncing /gnu/store will not work without also syncing /var/guix/db. I > think what you want to do is on host1 run 'guix publish' as you already > found, and on host2 you can then use 'guix install foo > --substitute-urls=3D"https://host1 https://ci.guix.gnu.org"' to get > substitutes from both host1 and the Guix CI infrastructure. > > See https://guix.gnu.org/manual/en/guix.html#Invoking-guix-publish for a > more complete explanation. > hmm...OK, so it's dificult to have a partial mirror on my tiny VPS. # I thought of pushing to VPS from my desktop, and fetch them from # old laptop when I'm away from home. (to demonstrate guix to friends) ## mainly for iwlwifi things and so on. kernel demands me one night. > To do this through the configuration system, you need > 'guix-publish-service-type' and adjusting the 'substitute-urls' field of > 'guix-service-type'. > > > - The right way of treating guix code (or guile code structure?) > > - I have to clone guix repo into my home directory? > > - Though "guix pull" should have source tree anywhere (in > > /gnu/store?), so are there any interfaces > > to access them through guix-daemon? > > - I want to tweak existing code (package definition) > > - I should copy target file to somewhere working directory to edit > > or edit target file in the project tree=EF=BC=9F > > After cloning the Guix repository, you can run Guix directly from the > checkout using the "./pre-inst-env" script: see the Contributing > section of the manual for how to configure a development environment: > > https://guix.gnu.org/manual/en/guix.html#Contributing > > Another alternative is to use 'guix pull --url=3D/your/cloned/repository'= . Hacking guix itself is... difficult for me, so I expect guix command to wor= k out of the box: - invoke "current" guix - it refers current store (readonly), cloned checkout of guix tree (overrid= ing current one), and my local package module would be desirable. > You can get completion and jumping through Geiser, but I don't have > instructions at hand. Hopefully some of the Emacs gurus can chime in > here. :-) I've found setting "geiser-guile-load-path" and Autodoc seems to work. I will try to build environment on this. regards, -- KURASHIKI Satoru