From: "dabbede@gmail.com" <dabbede@gmail.com>
To: "(" <paren@disroot.org>
Cc: help-guix@gnu.org
Subject: Re: Creating a package using two sources/origins
Date: Tue, 13 Dec 2022 21:56:13 +0100 [thread overview]
Message-ID: <CAEwYQ4RGZp+FNBma3Gn7FxxiZ=83AE=-r4o5pcr03C6_CoJRyw@mail.gmail.com> (raw)
In-Reply-To: <CP0GY728SKCX.1WGYAL6JLTUFG@guix-framework>
Hi (, thanks a lot.
Nope, that's not quite correct. Your ARGUMENTS should look like this:
>
> (arguments
> (list #:phases
> #~(modify-phases %standard-phases
> (add-after 'unpack 'unpack-extra-sources
> (lambda _
> (copy-recursively #+xenomai-origin
> "extra-source-directory"))))))
>
> You can think of ARGUMENTS as a bunch of keyword arguments to pass to the
> procedure that runs the build.
>
With this modification it almost works ;-)
The tar.bz2 file is downloaded in the store as file, and then copied in the
build directory with the name "extra-source-directory" (but it is not a
directory)
You've seen a ``.drv'' path being printed out by the CLI, right? They
> contain
> instructions to build a store item. Packages are /lowered/ into
> DERIVATIONs,
> but so are ORIGINs, LOCAL-FILEs, COMPUTED-FILEs, and any other kind of
> "file-like object" or "lowerable object", such as the object you create
> with
> FILE-APPEND. The thing they all have it common is that they all have a
> lowering
> procedure defined using DEFINE-GEXP-COMPILER; you can see a few examples
> of that
> in ``guix/gexp.scm'' and ``guix/packages.scm''. So, you can use UNGEXP and
> UNGEXP-NATIVE on anything that has been DEFINE-GEXP-COMPILERed, and its
> derivation will be built and its store path substituted.
>
> -- (
>
Now it's a little bit more clear, but for sure I have to practice more
before fully understand the type of "things" I'm using in the code.
Regards
prev parent reply other threads:[~2022-12-13 21:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-12 22:35 Creating a package using two sources/origins dabbede
2022-12-12 22:43 ` (
2022-12-12 23:58 ` dabbede
2022-12-13 6:17 ` (
2022-12-13 20:56 ` dabbede [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
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='CAEwYQ4RGZp+FNBma3Gn7FxxiZ=83AE=-r4o5pcr03C6_CoJRyw@mail.gmail.com' \
--to=dabbede@gmail.com \
--cc=help-guix@gnu.org \
--cc=paren@disroot.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).