[Top][All Lists]

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

Re: Newbie thoughts on Guile Hall + Guix

From: Zelphir Kaltstahl
Subject: Re: Newbie thoughts on Guile Hall + Guix
Date: Sun, 6 Feb 2022 21:37:46 +0000

On 2/6/22 17:35, Olivier Dion via General Guile related discussions wrote:
On Sat, 05 Feb 2022, Christine Lemmer-Webber <> wrote:
Anyway, just some thoughts.  Making Guile packages is already much less
intimidating now thanks to Hall's work.  Thank you for it!
Here's my two cents.  As much as I like hall for pure Guile project,
it's difficult to integrate extension libraries written in C.  I've also
never been a fan of the autotools stuffs.

I personnally end up writting something similar to hall for a project of
mine using Guix records.  From a description like so:
   (name "foo")
   (version "1")
   (configuration-file "config.scm")
     '(("include/config.h" . "FOO_CONFIG_H")
       ("foo/config.scm"   . "foo config")))
   (build-directory "./build")
   (cppflags `(-Include ,(pkg-cflags-only-I '(guile-3.0))))
   (guile-root "foo")
   (guile-tests-root "tests")
         (name "foo")
         (file "scripts/foo")
         (install? #t))
         (name "debug")
         (file "scripts/debug")
         (install? #f))))
         (name "foo")
         (files '("core/*.c"))
         (packages '(guile-3.0)))
         (name "bar")
         (files '("bar/bar.c"))
         (ldflags '(-lsomelib))
         (packages '(some-other-lib)))))
this description end up generating a `guix.scm`, `makefile`,
`pre-install-env`, `foo/config.scm` and `include/config.h`.  Packaging
is just a matter of shipping the `makefile` with the source codes.
What is this similar to Hall thing you have written, which generates the files from the code you gave?


reply via email to

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