From ebdf1d48c521ba0925c81453700dcd63a650eeab Mon Sep 17 00:00:00 2001 From: aristote Date: Tue, 29 Jul 2025 09:33:08 +0200 Subject: publications -> research --- publications/export.nix | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 publications/export.nix (limited to 'publications/export.nix') diff --git a/publications/export.nix b/publications/export.nix deleted file mode 100644 index b119054..0000000 --- a/publications/export.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ - jq, - pandoc, - refsJSON, - runCommand, -}: -runCommand "publications" {buildInputs = [jq pandoc];} '' - mkdir -p "$out"/{biblatex,bibtex,csljson} - cd "$out" - - for refs in ${refsJSON} - do - jq --compact-output ".[]" $refs | while read -r 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 - done -'' -- cgit v1.2.3