diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2024-02-28 16:07:43 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2024-02-28 16:07:43 +0100 |
| commit | 1297a6c7b341608cea3388e1fd2b39877a45efc3 (patch) | |
| tree | 8d69ba14defdabba4d4872b071d52ad08faa232d /publications/default.nix | |
| parent | 4f31cc6e28ccd749fe98a81630f59a02fbed9cfe (diff) | |
publications: add selected section
Diffstat (limited to 'publications/default.nix')
| -rw-r--r-- | publications/default.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/publications/default.nix b/publications/default.nix index 4c7189f..0c13869 100644 --- a/publications/default.nix +++ b/publications/default.nix @@ -3,7 +3,6 @@ lib, ... }: let - csl = lib.importJSON ./publications.json; export = id: publication: format: let publicationJSON = builtins.toFile "${id}.json" (builtins.toJSON [publication]); @@ -12,8 +11,7 @@ ''; in builtins.readFile publicationOut; -in - builtins.map (publication: + importPublications = builtins.map (publication: with publication; let exportThisTo = export id publication; in @@ -26,5 +24,8 @@ in biblatex = exportThisTo "biblatex"; csljson = exportThisTo "csljson"; }; - }) - csl + }); +in { + selected = importPublications (lib.importJSON ./publications_selected.json); + all = importPublications (lib.importJSON ./publications.json); +} |
