diff options
| author | aristote <quentin.aristote@irif.fr> | 2025-08-01 12:44:41 +0200 |
|---|---|---|
| committer | aristote <quentin.aristote@irif.fr> | 2025-08-01 12:44:41 +0200 |
| commit | 7132af9e3a7f84cebe287b3174f2d4a9c25252ca (patch) | |
| tree | 7d7ef9c12a37289725f0773049f50f2c3717c629 /research/default.nix | |
| parent | ac54a9c2e1f1dd6abd56be9f9a02c7741ab9b731 (diff) | |
| parent | 152a5c4697c257b7eeb91ad1a3dca74c44973f91 (diff) | |
Merge branch 'new-pub-format'
Diffstat (limited to 'research/default.nix')
| -rw-r--r-- | research/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/research/default.nix b/research/default.nix new file mode 100644 index 0000000..8de25f8 --- /dev/null +++ b/research/default.nix @@ -0,0 +1,20 @@ +{ + 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];}; +} |
