all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Building many packages in order
Date: Sun, 6 Nov 2016 17:04:00 +0100	[thread overview]
Message-ID: <e2281d8b-7ce9-98e7-717c-b0ae853b086b@crazy-compilers.com> (raw)
In-Reply-To: <idjtwc17sv8.fsf@bimsb-sys02.mdc-berlin.net>

Am 24.10.2016 um 15:56 schrieb Ricardo Wurmus:
> Here’s what I do to rebuild all bioconductor packages:
>
>
> guix build -e '((@@ (gnu packages) fold-packages)
>                 (lambda (pkg acc)
>                   (if ((@@ (guix import cran) bioconductor-package?) pkg)
>                       (cons pkg acc)
>                       acc))
>                 (list))'
>
> “fold-packages” takes a procedure that accumulates a list of packages.
> It takes the current package and the list of accumulated packages so
> far.  Here I’m using “bioconductor-package?” as a predicate, but you
> could use something else in its place (e.g. a procedure testing the
> package name).

Thanks for sharing this. Since I'm not a guile hacker, I'll stay with my
bash-script, even if it is not that performant :-)

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

      reply	other threads:[~2016-11-06 16:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-21 10:56 Building many packages in order Hartmut Goebel
2016-10-21 11:18 ` Roel Janssen
2016-10-21 12:15   ` Hartmut Goebel
2016-10-21 11:53 ` Efraim Flashner
2016-10-21 12:23   ` Hartmut Goebel
2016-10-21 19:44   ` Leo Famulari
2016-10-22 15:47     ` Efraim Flashner
2016-10-23 17:10       ` Hartmut Goebel
2016-10-24 13:56 ` Ricardo Wurmus
2016-11-06 16:04   ` Hartmut Goebel [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e2281d8b-7ce9-98e7-717c-b0ae853b086b@crazy-compilers.com \
    --to=h.goebel@crazy-compilers.com \
    --cc=guix-devel@gnu.org \
    --cc=ricardo.wurmus@mdc-berlin.de \
    /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.