From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Re: Help making a GNU Guix package for pure GNU Guile library Date: Sun, 31 Jan 2021 04:19:47 +0100 Message-ID: References: <87y2gagm8n.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15428"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: guile-user@gnu.org To: Ricardo Wurmus Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Jan 31 04:20:07 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l63HT-0003tV-K4 for guile-user@m.gmane-mx.org; Sun, 31 Jan 2021 04:20:07 +0100 Original-Received: from localhost ([::1]:54362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l63HS-0003Tm-D9 for guile-user@m.gmane-mx.org; Sat, 30 Jan 2021 22:20:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l63HH-0003Td-Pb for guile-user@gnu.org; Sat, 30 Jan 2021 22:19:56 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:54307) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l63HF-00006j-4u for guile-user@gnu.org; Sat, 30 Jan 2021 22:19:55 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 4EFD32400FB for ; Sun, 31 Jan 2021 04:19:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1612063190; bh=Cque9DdkwbwzuqXg54Jx73RonuWxJ+6FBG51jzjUQjk=; h=Subject:To:Cc:From:Date:From; b=aZvEu9Oi2SX2kqElXQKisG/7cJH7DVCYYh5h6DiVFVcyoJctT4zJSl0aB87mV+twE o4YF9BK3QYNI3acN5/2zla8aa0QAqzkA36MjuyJtK+p1eyg4mDararJNU5TzB8ckMy dYXfiu4TGW1RLHSFO9tl2FE4riDwXC/8IeHw+J5JWJXU0x5gi/thCG8PcEj5Ax55ws WUIxi+Tk3v9VzxJOFNvagg5lA1FchIMZHjwELXf/7iLgbRFk/N7D7hYiNltXYL+stC bUCno+niyDXX93qFa2Ln4Lwnb8PSCN0DJIwk+T14ZwKh/6DL4JpTEk/tZx3RMhneWy LzRE8145f5kxw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DSxC84bDrz6tmJ; Sun, 31 Jan 2021 04:19:48 +0100 (CET) X-Tagtoolbar-Keys: D20210131041947794 In-Reply-To: <87y2gagm8n.fsf@elephly.net> Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=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: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17214 Archived-At: Hello Ricardo! At first I thought "How could I overlook that guide?", but then I realized it is the one I tried following before. This fails for my library at the `guix package --install-from-file=my-hello.scm` step and I seem to not be able to get it to work. Perhaps it is something simple. I have the state of what I tried at (permalink) https://notabug.org/ZelphirKaltstahl/guix-package-manager-tutorials/src/85bd80735b44ac0bab5f1565e6c5ce1defdf7ef9/make-a-package and there is a `package.scm` file, which I try with `guix package --install-from-file='package.scm'`. Should I move this over to the Guix list? On one hand it is about a Guile library, so it would be good to have the knowledge here, but on the other hand it is mainly about what to do for packaging. In general, I would like to go the simplest and cleanest way to make a package. Perhaps I will need more at some point, if I write a program, that is not pure Guile, but I have not yet planned any such project. Perhaps for making packages for other programming languages, when those packages are not yet in Guix. Best regards, Zelphir On 1/30/21 10:15 PM, Ricardo Wurmus wrote: > Hi Zelphir, > >> For some time now I wanted to be able to make Guix package of some of my >> Guile projects or at least understand and know how to do that, write a >> guide for it and so on, to be able to do it whenever I need it and also >> to be able to contribute better to the Guile community and enable others >> to read how to create Guile packages and contribute. People would not >> have to clone any repo from me directly, but could use Guix to install >> stuff. > There is a packaging tutorial in the Guix Cookbook: > > https://guix.gnu.org/cookbook/en/html_node/Packaging.html > >> A few weeks ago I asked in the Guile IRC channel about how to approach >> learning the required things. There people recommended me to look at >> guile-haunt as an example, because it is also a pure Guile program, >> which is packaged for Guix already. So that i what I started doing. >> >> There is a whole jungle of stuff, that I do not yet understand in depth. >> Many of those things are GNU Autotools / GNU Automake or GNU M4 >> related. […] > If all you have are Guile modules and all you want is to package it for > Guix then you really don’t need to bother with Autotools. Use the > “guile-build-system”. It can be as simple as the “guile-srfi-89” > package in (gnu packages guile-xyz). > -- repositories: https://notabug.org/ZelphirKaltstahl