From: ludo@gnu.org (Ludovic Courtès)
To: David Craven <david@craven.ch>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: gexps
Date: Thu, 01 Sep 2016 13:38:17 +0200 [thread overview]
Message-ID: <87zinrrgt2.fsf@gnu.org> (raw)
In-Reply-To: <CAL1_immjxehYkqSk2f8YOs7RpqhYxtmzAYR=vWrmVT8XhXCKMA@mail.gmail.com> (David Craven's message of "Tue, 30 Aug 2016 20:01:19 +0200")
David Craven <david@craven.ch> skribis:
> Hi, I have a couple of questions:
>
> How do gexps relate to packages? Are they used in the
> package->bag->derivation process or is it just for writing services?
Yes, currently.
Currently the bag->derivation process uses
‘build-expression->derivation’, which is the (ugly) predecessor of
‘gexp->derivation’.
The goal is to switch over to gexps eventually; ‘wip-build-systems-gexp’
does exactly that, but there were performance regressions that I never
took the time to address completely.
> gexp->script and gexp->file only dump text into the store. How can I
> make them ignore the system/target architectures?
It’s not really possible, though I agree it would be nice!
If we force use of the host system type (say x86_64-linux), independent
of (%current-system) (say mips64el-linux), we approach what you want.
However, that would give us different derivations depending on the host
system type. That is, ‘guix system build -s mips64el-linux -d’ on
x86_64 would return something different from ‘guix system build -d’ on
mips64. This is not desirable.
An option would to have ‘gexp->file’ produce a fixed-output derivation
(it can compute the hash of the output on the host side).
Or maybe we need another mechanism similar to fixed-output derivations
to define equivalence classes of derivations.
Food for thought…
Ludo’.
next prev parent reply other threads:[~2016-09-01 11:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-30 18:01 gexps David Craven
2016-09-01 11:38 ` Ludovic Courtès [this message]
2016-09-01 11:58 ` gexps David Craven
2016-09-01 12:59 ` gexps 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
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=87zinrrgt2.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=david@craven.ch \
--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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).