all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Cássio Tavares" <cassio.ufg@gmail.com>
To: Liliana Marie Prikler <liliana.prikler@ist.tugraz.at>,
	Vagrant Cascadian <vagrant@debian.org>
Cc: help-guix@gnu.org
Subject: Re: Packaging existing software for Guix
Date: Fri, 1 Apr 2022 13:21:19 +0000	[thread overview]
Message-ID: <CAJTCCxMbaq-0AxkJfE4LRh_qVMqVSWtCovsPXnpLm3+JvkxM8g@mail.gmail.com> (raw)
In-Reply-To: <6e558ebc30c58558772c22ffb267643f3dedfc3c.camel@ist.tugraz.at>

Thanks. I followed the paths and found the corresponding modules, and I
think I get it: it's just a way not to hard-code the root of where the `mes`
code lies.

But then, it seems to me that @Vagrant Cascadian <vagrant@debian.org> is
not correct when he suggests that this code enables the build system to
checkout the current git commit, because there are still version
specifications in all the `define-public` statements within the actual `
mes.scm` file. Am I correct in this assessment?

Thanks,
Cássio
-----
Faculdade de Letras - UFG
*“*
*Ou a gente se Raôni, ou a gente se Sting**”*


On Fri, Apr 1, 2022 at 6:26 AM Liliana Marie Prikler <
liliana.prikler@ist.tugraz.at> wrote:

> 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
>

  reply	other threads:[~2022-04-01 13:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-01  6:26 Packaging existing software for Guix Liliana Marie Prikler
2022-04-01 13:21 ` Cássio Tavares [this message]
  -- 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

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

  git send-email \
    --in-reply-to=CAJTCCxMbaq-0AxkJfE4LRh_qVMqVSWtCovsPXnpLm3+JvkxM8g@mail.gmail.com \
    --to=cassio.ufg@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=liliana.prikler@ist.tugraz.at \
    --cc=vagrant@debian.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.