diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2025-08-12 15:26:08 +0200 |
|---|---|---|
| committer | aristote <quentin.aristote@irif.fr> | 2025-08-12 15:52:07 +0200 |
| commit | f5c814c49c37637877bc518ba7c565bf3c057a19 (patch) | |
| tree | 74f34919f580f58f813eb6a12d17e297cb544a02 /research/default.nix | |
| parent | 4b819fb2559dc9d5c652077743218c73133b0343 (diff) | |
rename any last instances of 'publications' to 'research'
Diffstat (limited to 'research/default.nix')
| -rw-r--r-- | research/default.nix | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/research/default.nix b/research/default.nix index 8de25f8..90f0471 100644 --- a/research/default.nix +++ b/research/default.nix @@ -2,19 +2,31 @@ pkgs, lib, ... -}: let - importPublications = builtins.map (publication: - with publication; - publication - // { - year = with builtins; toString (head (head issued.date-parts)); - url = URL; - }); -in { - conferences = importPublications (lib.importJSON ./conferences.json); - journals = importPublications (lib.importJSON ./journals.json); - reports = importPublications (lib.importJSON ./reports.json); - misc = importPublications (lib.importJSON ./miscellaneous.json); - talks = importPublications (lib.importJSON ./talks.json); - files = pkgs.callPackage ./export.nix {refsJSON = lib.concatStringsSep " " [./conferences.json ./journals.json ./reports.json ./miscellaneous.json ./talks.json];}; +}: +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 + ]; + }; } |
