all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita@karetnikov.org>
Cc: bug-guix@gnu.org
Subject: Re: Grue Hunter: Can't create directories in the store
Date: Thu, 16 May 2013 18:33:37 +0200	[thread overview]
Message-ID: <87ppwqdgv2.fsf@gnu.org> (raw)
In-Reply-To: <87fvxn3b51.fsf@karetnikov.org> (Nikita Karetnikov's message of "Thu, 16 May 2013 06:35:06 +0400")

Nikita Karetnikov <nikita@karetnikov.org> skribis:

>>    (let* ((gh   (assoc-ref %build-inputs "source"))
>
> What is the associated value here?  I assume it should be 'gh.pl'.

Yes.  Actually, “source” is the name of the input that corresponds to
the ‘source’ field of the package.  So, if your package does

  (package
    (source (origin (... (uri ".../gh.pl"))))
    ...)

then in the builder, (assoc-ref %build-inputs "source") will be
/nix/store/...-gh.pl.

> I guess I'm missing something because you said that "Guile and the (guix
> build utils) provide us with everything we need."

I meant they provide procedures equivalent in functionality to
Coreutils, Findutils, and sed.

> Also, why is it necessary to specify (guix build utils) in #:modules and
> import it via 'use-modules' in #:builder too?  According to the manual,
> all arguments are passed to the build system.

(guix build utils) is not a standard Guile module, so if your build
script wants to use it, it needs to be made available in the chroot
where that build script is run.  That’s what the #:module argument does.

Then ‘use-modules’ does the actual import.

HTH,
Ludo’.

  reply	other threads:[~2013-05-16 18:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-14 19:36 Grue Hunter: Can't create directories in the store Nikita Karetnikov
2013-05-15  0:59 ` Cyril Roelandt
2013-05-15 12:11 ` Ludovic Courtès
2013-05-16  2:35   ` Nikita Karetnikov
2013-05-16 16:33     ` Ludovic Courtès [this message]
2013-05-24  9:24       ` Nikita Karetnikov
2013-05-24 12:51         ` Ludovic Courtès
2013-05-24 14:34           ` Nikita Karetnikov
2013-05-24 15:32             ` Ludovic Courtès
2013-05-30  3:40               ` [PATCH] gnu: Add Grue Hunter Nikita Karetnikov
2013-05-30 11:53                 ` Ludovic Courtès
2013-06-03  3:18                   ` Nikita Karetnikov
2013-06-03 10:14                     ` 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=87ppwqdgv2.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=bug-guix@gnu.org \
    --cc=nikita@karetnikov.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.