unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guile-user@gnu.org
Subject: Re: Help making a GNU Guix package for pure GNU Guile library
Date: Sun, 31 Jan 2021 04:19:47 +0100	[thread overview]
Message-ID: <c2d62aa4-0b56-1b7f-195a-cc3912704da1@posteo.de> (raw)
In-Reply-To: <87y2gagm8n.fsf@elephly.net>

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




  parent reply	other threads:[~2021-01-31  3:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-30 17:17 Help making a GNU Guix package for pure GNU Guile library Zelphir Kaltstahl
2021-01-30 17:55 ` Jérémy Korwin-Zmijowski
2021-01-30 19:56   ` divoplade
2021-01-31  3:26   ` Zelphir Kaltstahl
2021-01-30 18:35 ` John Cowan
2021-01-30 19:43   ` Dr. Arne Babenhauserheide
2021-01-30 20:16     ` divoplade
2021-01-30 21:15 ` Ricardo Wurmus
2021-01-31  0:26   ` build system for pure Guile library (was Re: Help making a GNU Guix package for pure GNU Guile library) pelzflorian (Florian Pelz)
2021-01-31  6:29     ` Ricardo Wurmus
2021-01-31 14:16       ` Zelphir Kaltstahl
2021-01-31 15:38         ` Dr. Arne Babenhauserheide
2021-02-03 23:07           ` Zelphir Kaltstahl
2021-02-04  0:09             ` Ricardo Wurmus
2021-02-03 18:31         ` Adriano Peluso
2021-01-31  3:19   ` Zelphir Kaltstahl [this message]
2021-02-03 18:43     ` Help making a GNU Guix package for pure GNU Guile library Adriano Peluso
2021-02-03 23:12       ` Zelphir Kaltstahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c2d62aa4-0b56-1b7f-195a-cc3912704da1@posteo.de \
    --to=zelphirkaltstahl@posteo.de \
    --cc=guile-user@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).