all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Csepp <raingloom@riseup.net>
To: Christopher Rodriguez <cdr255@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: A Few Packaging Questions
Date: Fri, 05 Aug 2022 18:35:32 +0200	[thread overview]
Message-ID: <87zggihcca.fsf@riseup.net> (raw)
In-Reply-To: <875yj75r6t.fsf@gmail.com>

Hi!

Christopher Rodriguez <cdr255@gmail.com> writes:

> [[PGP Signed Part:Undecided]]
> Hello All,
>
> 1. Is there a way to call non-exported procedures from a module in
> Guile?

There is one but you should not use it.  Instead you should send a patch
that adds an export to the previously private declaration.
And the way is to use the @@ function, but code that relies on it is
AFAIK not acceptable in Guix.

> 2. Is there a list of variables accessible using gexps somewhere, or
> some source code I might be able to glean the same information from?
>
> I have just discovered #$output as a somewhat useful tool, and I'm
> currently looking to learn more ahead of when I might need them.

The info pages should have more, well, info.  Easiest way to find them
IMHO is through Emacs.  There is also an HTML mirror:

https://guix.gnu.org/en/manual/devel/en/html_node/G_002dExpressions.html#G_002dExpressions

> 3. What is the canonical way in the new input system to reference a
> specific output of a package?

According to the URL above, it's #$output[:output].

I hope that helped.  Happy packaging. UwU


  reply	other threads:[~2022-08-05 16:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-05  2:50 Christopher Rodriguez
2022-08-05 16:35 ` Csepp [this message]
2022-08-07 21:02 ` Ludovic Courtès

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=87zggihcca.fsf@riseup.net \
    --to=raingloom@riseup.net \
    --cc=cdr255@gmail.com \
    --cc=guix-devel@gnu.org \
    /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.