Re: proposal: (define (find-guix-packages list-of-names) ... )

2015-11-29 Thread Florian Paul Schmidt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 11/28/2015 04:39 PM, Ludovic Courtès wrote: >> Let's start smaller :) > > I rearranged the text and ended up with something different from > your original patch but hopefully as informative in f6c9fb1. And more concise :) Thanks, Flo - -- h

Re: proposal: (define (find-guix-packages list-of-names) ... )

2015-11-28 Thread Ludovic Courtès
Florian Paul Schmidt skribis: > On Mon, 16 Nov 2015 21:06:00 +0100 > l...@gnu.org (Ludovic Courtès) wrote: > >> Sure. I think we would need a new section for (gnu packages), maybe >> “Distribution API” under “GNU Distribution”? It would describe >> ‘fold-packages’, ‘specification->package’, and

Re: proposal: (define (find-guix-packages list-of-names) ... )

2015-11-20 Thread Florian Paul Schmidt
On Mon, 16 Nov 2015 21:06:00 +0100 l...@gnu.org (Ludovic Courtès) wrote: > Sure. I think we would need a new section for (gnu packages), maybe > “Distribution API” under “GNU Distribution”? It would describe > ‘fold-packages’, ‘specification->package’, and so on. Let's start smaller :) [I'm sti

Re: proposal: (define (find-guix-packages list-of-names) ... )

2015-11-16 Thread Ludovic Courtès
Florian Paul Schmidt skribis: > sure, I'm fine with just a warning, too. Thought I'd just mention the > possible problems that exist. If you want to, I can try and put > together a patch for the docs.. Sure. I think we would need a new section for (gnu packages), maybe “Distribution API” under

Re: proposal: (define (find-guix-packages list-of-names) ... )

2015-11-16 Thread Florian Paul Schmidt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 11/16/2015 02:03 PM, Ludovic Courtès wrote: > Florian Paul Schmidt skribis: > > I’m fine with documenting ‘specification->package’ as an alternate > option. Its semantics are exactly the same as when referring to a > package by name on the co

Re: proposal: (define (find-guix-packages list-of-names) ... )

2015-11-16 Thread Ludovic Courtès
Florian Paul Schmidt skribis: > +(define (find-guix-packages list-of-names) > + (map > + car > + (map > +find-packages-by-name > +list-of-names))) [...] > I am aware that is maybe still too simplistic. E.g.: It might be good > to check if the name is ambiguous instead of just takin

Re: proposal: (define (find-guix-packages list-of-names) ... )

2015-11-16 Thread Florian Paul Schmidt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, and thanks for your reply.. On 11/15/2015 09:35 PM, Ludovic Courtès wrote: > I think ‘specification->package’ from (gnu packages) is the > procedure you want. Like this: > > (map specification->package '("guile-2" "gnupg-2.0" "coreutils")) >

Re: proposal: (define (find-guix-packages list-of-names) ... )

2015-11-16 Thread Ludovic Courtès
Florian Paul Schmidt skribis: > Hi, and thanks for your reply.. > > On 11/15/2015 09:35 PM, Ludovic Courtès wrote: > >> I think ‘specification->package’ from (gnu packages) is the >> procedure you want. Like this: >> >> (map specification->package '("guile-2" "gnupg-2.0" "coreutils")) >> >> It e

proposal: (define (find-guix-packages list-of-names) ... )

2015-11-12 Thread Florian Paul Schmidt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, I found a procedure like this (then at the top of my system config.scm's) to be quite useful: diff --git a/gnu/packages.scm b/gnu/packages.scm index fb27738..63500ab 100644 - --- a/gnu/packages.scm +++ b/gnu/packages.scm @@ -228,6 +228,14 @@ de