guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help making a GNU Guix package for pure GNU Guile library


From: Zelphir Kaltstahl
Subject: Re: Help making a GNU Guix package for pure GNU Guile library
Date: Sun, 31 Jan 2021 04:19:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]