Sebastian Walz 860d31cee1
Tohu vaBohu
2023-04-21 00:22:52 +02:00

18 lines
387 B
Nix

{ core, ... } @ libs:
let
inherit(core) library;
getFormat
= outputFormat:
if outputFormat != null
then
outputFormat
else
"tex";
renderTex = library.import ./tex libs;
in
outputFormat:
{
"tex" = renderTex;
}.${getFormat outputFormat}