[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] gnu-maintenance: Replace 'official-gnu-packages' with 'find-pack
From: |
Nikita Karetnikov |
Subject: |
[PATCH] gnu-maintenance: Replace 'official-gnu-packages' with 'find-packages'. |
Date: |
Wed, 06 Mar 2013 22:54:34 +0400 |
> Also, I think it should process fields, and return an alist, or even
> better, a ‘gnu-package-descriptor’ record (say).
>
> (define-record-type <gnu-package-descriptor>
> gnu-package-descriptor?
> (gnu-package-descriptor name logo-url doc-category ...)
> ...
> )
>
> (official-gnu-packages)
> => (#<gnu-package-descriptor name: "guix" logo-url: "http://..." ...#> ...)
>
> WDYT?
Oh, I forgot about this when I was writing the attached patch. Is it
fine? Should I rewrite it using records?
I guess that it will work faster if I use 'cons' in 'loop' instead of
'append'. Is it worth it?
Examples:
scheme@(guile-user)> ,use (guix gnu-maintenance)
scheme@(guile-user)> (find-packages "guix")
$1 = (("package: guix" "logo: /software/guix/graphics/guix-logo.small.png"
"doc-category: Sysadmin" "doc-summary: Managing installed software packages and
versions" "doc-url: none" "gplv3-status: should-be-ok" "activity-status:
newpkg/20121117"))
This one:
(find-packages "guile")
should return several packages.
0001-gnu-maintenance-Replace-official-gnu-packages-with-f.patch
Description: Text Data
pgpAHMbUMDzic.pgp
Description: PGP signature
- [PATCH] gnu-maintenance: Replace 'official-gnu-packages' with 'find-packages'.,
Nikita Karetnikov <=
- Re: [PATCH] gnu-maintenance: Replace 'official-gnu-packages' with 'find-packages'., Ludovic Courtès, 2013/03/06
- [PATCH] gnu-maintenance: Improve 'official-gnu-packages'; add the related procedures., Nikita Karetnikov, 2013/03/16
- Re: [PATCH] gnu-maintenance: Improve 'official-gnu-packages'; add the related procedures., Ludovic Courtès, 2013/03/22
- Re: [PATCH] gnu-maintenance: Improve 'official-gnu-packages'; add the related procedures., Nikita Karetnikov, 2013/03/26
- Re: [PATCH] gnu-maintenance: Improve 'official-gnu-packages'; add the related procedures., Ludovic Courtès, 2013/03/26
- Re: [PATCH] gnu-maintenance: Improve 'official-gnu-packages'; add the related procedures., Nikita Karetnikov, 2013/03/26