From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: Building many packages in order Date: Sun, 6 Nov 2016 17:04:00 +0100 Message-ID: References: <5809F448.5030508@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3Pvb-0007Va-Rt for guix-devel@gnu.org; Sun, 06 Nov 2016 11:04:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3PvY-0002NH-Nt for guix-devel@gnu.org; Sun, 06 Nov 2016 11:04:15 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:58579) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3PvY-0002J6-Ht for guix-devel@gnu.org; Sun, 06 Nov 2016 11:04:12 -0500 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel 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 |