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 /publications/export.nix | |
| parent | ac54a9c2e1f1dd6abd56be9f9a02c7741ab9b731 (diff) | |
| parent | 152a5c4697c257b7eeb91ad1a3dca74c44973f91 (diff) | |
Merge branch 'new-pub-format'
Diffstat (limited to 'publications/export.nix')
| -rw-r--r-- | publications/export.nix | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/publications/export.nix b/publications/export.nix deleted file mode 100644 index 6a6c42d..0000000 --- a/publications/export.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ - jq, - pandoc, - refsJSON ? ./publications.json, - runCommand, -}: -runCommand "publications" {buildInputs = [jq pandoc];} '' - mkdir -p "$out"/{biblatex,bibtex,csljson} - cd "$out" - - jq --compact-output ".[]" ${refsJSON} | while read ref - do - id=$(echo "$ref" | jq --raw-output '.id') - echo $id - echo "$ref" > "csljson/$id" - cat csljson/$id - pandoc --from=csljson --to=biblatex --output "biblatex/$id" <<< "[ $ref ]" - pandoc --from=csljson --to=bibtex --output "bibtex/$id" <<< "[ $ref ]" - done -'' |
