-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpkg.nix
More file actions
20 lines (20 loc) · 740 Bytes
/
pkg.nix
File metadata and controls
20 lines (20 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ stdenv, lib, texlive, agda }:
let
tex-env = texlive.combine {
inherit (texlive) scheme-small latexmk chktex stmaryrd mathpartir rsfs
cmll xcolor paralist makecell tikz-cd ncctools biblatex
xifthen ifmtarg polytable etoolbox environ xkeyval
lazylist trimspaces newunicodechar
catchfilebetweentags catchfile;
};
agda-env = agda.withPackages (p: with p; [ standard-library ]);
in stdenv.mkDerivation {
name = "generic-lr";
src = lib.sourceFilesBySuffices ./tex [ ".nix" ".tex" ]
+ lib.sourceFilesBySuffices ./src [ ".agda" ".lagda.tex" ];
buildInputs = [ tex-env agda-env ];
buildPhase = ''
make
'';
installPhase = "";
}