[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50515] (guix-artwork)[PATCH 0/2] List linux origins in 'sources.jso
From: |
zimoun |
Subject: |
[bug#50515] (guix-artwork)[PATCH 0/2] List linux origins in 'sources.json'. |
Date: |
Thu, 21 Oct 2021 11:42:24 +0200 |
Hi,
On Mon, 18 Oct 2021 at 14:23, Ludovic Courtès <ludo@gnu.org> wrote:
>> (make-page "sources.json"
>> - `(("sources" . ,(list->vector (map package->json
>> (all-packages))))
>> + `(("sources" . ,(list->vector (flatten (map package->json
>> (all-packages)))))
>
> Maybe we should just change ‘package->json’ to always return a list of
> JSON records (alists)? That way, we would write:
>
> (append-map package->json (all-packages))
>
> which I find slightly clearer.
Done with v3.
Cheers,
simon