summaryrefslogtreecommitdiff
path: root/publications/default.nix
blob: d41555ce6ed5827ee7fab193103fb1c95bcb688b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  pkgs,
  lib,
  ...
}: let
  importPublications = builtins.map (publication:
    with publication;
      publication
      // {
        year = with builtins; toString (head (head issued.date-parts));
        url = URL;
      });
in {
  selected = importPublications (lib.importJSON ./publications_selected.json);
  all = importPublications (lib.importJSON ./publications.json);
  files = pkgs.callPackage ./export.nix {};
}