From: Liliana Marie Prikler <liliana.prikler@ist.tugraz.at>
To: cassio.ufg@gmail.com
Cc: help-guix@gnu.org
Subject: Re: Packaging existing software for Guix
Date: Fri, 01 Apr 2022 08:26:42 +0200 [thread overview]
Message-ID: <6e558ebc30c58558772c22ffb267643f3dedfc3c.camel@ist.tugraz.at> (raw)
In-Reply-To: CAJTCCxOg--V3XubFyss=v3Ri-Y3ZDkB21aV3giZ2fq1KrDCuTA@mail.gmail.com
Hi Cássio
> OK, I checked this scheme file, and it's just a four-line program,
> but I don't get it. So, help me here ─ what is this *↓↓↓* `mes` code
> actually doing?
>
>
This line gets the name of the directory in which (current-filename),
i.e. /path/to/mes/guix.scm lies.
> (define %source-dir (dirname (current-filename)))
This adds /path/to/mes/guix to the Guile load path.
> (add-to-load-path (string-append %source-dir "/guix"))
This loads git/mes.scm from the load path (see above) and makes its
public bindings available.
> (use-modules (git mes))
This is just a variable, probably exported by the (git mes) module,
which should itself be a (package ...) description.
> mes.git
Cheers
next reply other threads:[~2022-04-01 11:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-01 6:26 Liliana Marie Prikler [this message]
2022-04-01 13:21 ` Packaging existing software for Guix Cássio Tavares
-- strict thread matches above, loose matches on Subject: below --
2022-03-29 14:22 Cássio Tavares
2022-03-29 15:55 ` Ricardo Wurmus
2022-04-04 21:17 ` Cássio Tavares
2022-04-08 3:59 ` raingloom
2022-03-29 16:31 ` Vagrant Cascadian
2022-03-31 22:23 ` Cássio Tavares
2022-04-02 17:00 ` Bird
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://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6e558ebc30c58558772c22ffb267643f3dedfc3c.camel@ist.tugraz.at \
--to=liliana.prikler@ist.tugraz.at \
--cc=cassio.ufg@gmail.com \
--cc=help-guix@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.
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).