From: Danny Milosavljevic <dannym@scratchpost.org>
To: Hartmut Goebel <h.goebel@crazy-compilers.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: "move-phase-after"?
Date: Tue, 6 Sep 2016 12:54:49 +0200 [thread overview]
Message-ID: <20160906125449.29c60764@scratchpost.org> (raw)
In-Reply-To: <57CE7856.5040607@crazy-compilers.com>
Hi,
On Tue, 6 Sep 2016 10:03:34 +0200
Hartmut Goebel <h.goebel@crazy-compilers.com> wrote:
> for some package I need to switch the install and check phase. Could
> please someone point me to a function like "move-phase-after"? Thanks.
I don't think this exists yet.
See the ./guix/build/utils.scm for the macro definition.
You would have to do something like
(let ((check (assoc-ref %standard-phases 'check)))
(modify-phases %standard-phases
(delete 'check)
(add-after 'install 'check
check)))
I think it would be possible to add such a thing to the macro.
You can see what the macro expands to by using (tree-il->scheme (macroexpand ...)).
See https://www.gnu.org/software/guile/docs/master/guile.html/Macro-Expansion.html
It's expanding to something like this:
(alist-replace 'a FN
(alist-cons-after 'b FN
(alist-cons-after 'c FN
(alist-delete 'd
%standard-phases))))
Each of the alist-* results in a new list.
next prev parent reply other threads:[~2016-09-06 10:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-06 8:03 "move-phase-after"? Hartmut Goebel
2016-09-06 10:54 ` Danny Milosavljevic [this message]
2016-09-06 13:06 ` "move-phase-after"? Danny Milosavljevic
2016-09-07 12:20 ` "move-phase-after"? Ludovic Courtès
2016-09-08 8:11 ` "move-phase-after"? Hartmut Goebel
2016-09-06 17:11 ` "move-phase-after"? Efraim Flashner
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=20160906125449.29c60764@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=guix-devel@gnu.org \
--cc=h.goebel@crazy-compilers.com \
/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).