From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?55m944GE54aK?= Subject: Guix packaging tutorial with hand holding Date: Thu, 30 May 2019 07:41:14 +0200 (GMT+02:00) Message-ID: <443844029.1559193703837.eu.faircode.email@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:35703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWDol-0000dU-AP for help-guix@gnu.org; Thu, 30 May 2019 01:41:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWDoj-0006qN-5w for help-guix@gnu.org; Thu, 30 May 2019 01:41:34 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:41302) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hWDob-0006f1-8p for help-guix@gnu.org; Thu, 30 May 2019 01:41:26 -0400 Received: from ip-37-188-254-4.eurotel.cz ([37.188.254.4] helo=[127.0.0.1]) by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hWDoT-0004b9-KF for help-guix@gnu.org; Thu, 30 May 2019 01:41:17 -0400 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org Hi Guix: I'd like to advance step-by-step in learning how to write package definitio= ns with the eventual goal of contributing to Guix. For this I'd like to ask if someone could help me and other Guix-hacking-pa= ckaging beginners with some hand holding =E2=80=94 concrete though, with ex= amples, so I could then proceed through trial and error. I've tried to follow the Guix packaging tutorial guide [1]. I can build and= install the sample my-hello package with the from-file approach. Next, I'd like to build and install the sample my-libgit2 package. Here, ho= wever I can't proceed: The tutorial is old so it mentions the =E2=80=9CGUIX_PACKAGE_PATH=E2=80=9D = approach which is deprecated and recommends using Guix channels. In the Gui= x manual I see the way to add a channel to your Guix, now is there a way to= use a local git directory? So that I could experiment locally =E2=80=94 wi= thout right away going through syncing the local git with an online git rep= ository? If not I'll guess I'll have to go through Github just to play with= some intro stuff. Second, working on the Guix git checkout is recommended as the best way. Wh= at is the way of working with Guix git checkout on a GuixSD system? I.e. sh= ould I pull, build it =E2=80=94 the git. Then what? Where to run guix pull = and guix package -u =E2=80=94 in the git, leave the SD versions un-updated? Finally, are there some nice examples of using inheritance? I.e. I just wan= t to add a compile option, or some dependency to some package =E2=80=94 is = there some example I can play with? Many thanks for any help! :@) [1] https://www.gnu.org/software/guix/blog/2018/a-packaging-tutorial-for-gu= ix/ -- Best regards / =E5=AE=9C=E3=81=97=E3=81=8F=E5=BE=A1=E9=A1=98=E3=81=84=E8= =87=B4=E3=81=97=E3=81=BE=E3=81=99 / S pozdravem / C =D1=83=D0=B2=D0=B0=D0= =B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC / Z powa=C5=BCaniem / Mit freundlichen Gr=C3=BC=C3=9Fen =E7=99=BD=E3=81=84=E7=86=8A