-
Notifications
You must be signed in to change notification settings - Fork 156
/
Copy pathflake.nix
49 lines (45 loc) · 1.24 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
outputs = inputs: {
packages =
builtins.mapAttrs (_: {nixpkgs, ...}: {
default = with nixpkgs;
buildLatex {
name = "blocks-cddl-spec";
texFiles = ["byron-binary"];
meta = with lib; {
description = "Byron blocks CDDL specification";
license = licenses.asl20;
platforms = platforms.linux;
};
src = ./.;
texInputs = {
inherit
(texlive)
scheme-small
# Fonts
cm-super
# libraries
unicode-math
lm-math
amsmath
enumitem
bclogo
xcolor
newunicodechar
appendix
syntax
# build tools
latexmk
;
};
buildInputs = [
gitMinimal
# CBOR scheme specification related tools
cddl
cbor-diag
];
};
})
(inputs.main or (import ../../../nix/flake-compat.nix).defaultNix).legacyPackages;
};
}