agdaPackages.*: support literate Typst files

This commit is contained in:
Naïm Favier 2023-10-22 23:51:42 +02:00
parent 97ba4facba
commit 6c2b227d34
No known key found for this signature in database
GPG Key ID: 95AFCE8211908325
2 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ let
"lagda.org"
"lagda.rst"
"lagda.tex"
"lagda.typ"
];
defaults =

View File

@ -6,7 +6,7 @@
* interfaceFile "Everything.agda" == "Everything.agdai"
* interfaceFile "src/Everything.lagda.tex" == "src/Everything.agdai"
*/
interfaceFile = agdaFile: lib.head (builtins.match ''(.*\.)l?agda(\.(md|org|rst|tex))?'' agdaFile) + "agdai";
interfaceFile = agdaFile: lib.head (builtins.match ''(.*\.)l?agda(\.(md|org|rst|tex|typ))?'' agdaFile) + "agdai";
/* Takes an arbitrary derivation and says whether it is an agda library package
* that is not marked as broken.