From: ludo@gnu.org (Ludovic Courtès)
To: Mathieu Othacehe <m.othacehe@gmail.com>
Cc: 27275@debbugs.gnu.org
Subject: bug#27275: [PATCH 1/2] pull: Add a dependency to guile-git.
Date: Thu, 08 Jun 2017 22:52:54 +0200 [thread overview]
Message-ID: <87d1aep5g9.fsf@gnu.org> (raw)
In-Reply-To: <86r2yuilg4.fsf@gmail.com> (Mathieu Othacehe's message of "Thu, 08 Jun 2017 16:49:15 +0200")
Hello!
Mathieu Othacehe <m.othacehe@gmail.com> skribis:
> I attached the patch I come up with. It's working ok :)
> I have a shorter version using match :
>
> (letrec-syntax ((maybe-load-paths
> (syntax-rules ()
> ((_ item rest ...)
> (let ((tail (maybe-load-paths rest ...)))
> (if (string? item)
> (match tail
> ((load-path load-compiled-path)
> (list
> (cons (string-append item
> "/share/guile/site/"
> #$(effective-version))
> load-path)
> (cons (string-append item
> "/lib/guile/"
> #$(effective-version)
> "/site-ccache")
> load-compiled-path))))
> tail)))
> ((_)
> '(() ())))))
> (match (maybe-load-paths #$guile-json #$guile-ssh
> #$guile-git #$guile-bytestructures)
> ((module-load-path module-load-compiled-path)
> (set! %load-path (append module-load-path %load-path)
> (set! %load-compiled-path (append module-load-compiled-path %load-compiled-path))))))
>
> It might seems preferable but I can't get guix-latest derivation to
> include (ice-9 match), maybe because of #:module-path in
> "(gexp->derivation "guix-latest" ...".
Hmm (ice-9 match) should always be found, but don’t add it to the
#:modules argument of ‘gexp->derivation’.
> From 1130f8eafdb27216fc542bff253a940528bedc6a Mon Sep 17 00:00:00 2001
> From: Mathieu Othacehe <m.othacehe@gmail.com>
> Date: Wed, 7 Jun 2017 13:44:47 +0200
> Subject: [PATCH 2/2] pull: Add a dependency to guile-git.
>
> * build-aux/build-self.scm (guile-git, guile-bytestructures): New
> variables.
> (build): Add guile-git and guile-bytestructures to %load-path and
> %load-compiled-path.
OK for this or the variant that uses ‘match’.
Thanks!
Ludo’.
next prev parent reply other threads:[~2017-06-08 20:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-07 12:04 bug#27275: [PATCH 0/2] Add (guix git) module Mathieu Othacehe
2017-06-07 12:05 ` bug#27275: [PATCH 1/2] pull: Add a dependency to guile-git Mathieu Othacehe
2017-06-07 12:05 ` bug#27275: [PATCH 2/2] guix: git: Add new module Mathieu Othacehe
2017-06-07 12:21 ` Ludovic Courtès
2017-06-07 12:21 ` bug#27275: [PATCH 1/2] pull: Add a dependency to guile-git Ludovic Courtès
2017-06-07 13:58 ` Mathieu Othacehe
2017-06-08 12:06 ` Ludovic Courtès
2017-06-08 14:49 ` Mathieu Othacehe
2017-06-08 20:52 ` Ludovic Courtès [this message]
2017-06-09 7:51 ` Mathieu Othacehe
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=87d1aep5g9.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=27275@debbugs.gnu.org \
--cc=m.othacehe@gmail.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).