From ebdf1d48c521ba0925c81453700dcd63a650eeab Mon Sep 17 00:00:00 2001 From: aristote Date: Tue, 29 Jul 2025 09:33:08 +0200 Subject: publications -> research --- research/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 research/default.nix (limited to 'research/default.nix') 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];}; +} -- cgit v1.2.3