blob: 90f0471f2a409817c521d100a056f137a8ea651c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{
pkgs,
lib,
...
}:
let
importResearch = builtins.map (
researchItem:
with researchItem;
researchItem
// {
year = with builtins; toString (head (head issued.date-parts));
url = URL;
}
);
in
{
conferences = importResearch (lib.importJSON ./conferences.json);
journals = importResearch (lib.importJSON ./journals.json);
reports = importResearch (lib.importJSON ./reports.json);
misc = importResearch (lib.importJSON ./miscellaneous.json);
talks = importResearch (lib.importJSON ./talks.json);
files = pkgs.callPackage ./export.nix {
refsJSON = lib.concatStringsSep " " [
./conferences.json
./journals.json
./reports.json
./miscellaneous.json
./talks.json
];
};
}
|