[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building many packages in order
From: |
Hartmut Goebel |
Subject: |
Re: Building many packages in order |
Date: |
Sun, 6 Nov 2016 17:04:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
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 | address@hidden |
| www.crazy-compilers.com | compilers which you thought are impossible |
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Building many packages in order,
Hartmut Goebel <=