diff options
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 -'' |
