all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Guillaume Le Vaillant <glv@posteo.net>
To: jgart <jgart@dismail.de>
Cc: Guix Help <help-guix@gnu.org>
Subject: Re: what am I doing wrong with girc?
Date: Sat, 03 Sep 2022 14:24:53 +0000	[thread overview]
Message-ID: <87sfl8le2s.fsf@kitej> (raw)
In-Reply-To: <20220903083938.GB22667@dismail.de>

[-- Attachment #1: Type: text/plain, Size: 1655 bytes --]

jgart <jgart@dismail.de> skribis:

> Hi Guixers,
>
> I'm trying to package girc:
>
> https://github.com/McParen/girc/search?p=2&q=anvi
>
> Should I be referencing the asd-system explicitly?
>
> Does this asd system have some inconsistencies in how it was set up?
>
> I have to use build-program to package the binary executable.
>
> all best,
>
> jgart
>
> [...]
>       (arguments
>         (list
>           #:phases
>           #~(modify-phases %standard-phases
>               (add-after 'create-asdf-configuration 'build-program
>                 (lambda* (#:key outputs #:allow-other-keys)
>                   (build-program
>                    (string-append (assoc-ref outputs "out") "/bin/girc")
>                    outputs
>                    #:entry-program '((girc:girc) 0)
>                    #:dependencies '("split-sequence")))))))
> [...]

I think the 'build-program' phase should be something like:

--8<---------------cut here---------------start------------->8---
(add-after 'create-asdf-configuration 'build-program
  (lambda* (#:key outputs #:allow-other-keys)
    (build-program (string-append (assoc-ref outputs "out") "/bin/girc")
                   outputs
                   #:entry-program '((girc:run))
                   #:dependencies '("girc")))
--8<---------------cut here---------------end--------------->8---

Where 'dependencies' indicates what library to load, and 'entry-program'
indicates which function of this library to call.

If girc is meant to be used as a standalone program, maybe you could
just call the package "girc" and put it in "irc.scm", and the "*cl-girc"
library packages would not be necessary.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

      reply	other threads:[~2022-09-03 14:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-03 13:39 what am I doing wrong with girc? jgart
2022-09-03 14:24 ` Guillaume Le Vaillant [this message]

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

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

  git send-email \
    --in-reply-to=87sfl8le2s.fsf@kitej \
    --to=glv@posteo.net \
    --cc=help-guix@gnu.org \
    --cc=jgart@dismail.de \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.