-
Notifications
You must be signed in to change notification settings - Fork 5
/
default.nix
76 lines (70 loc) · 1.29 KB
/
default.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{ stdenv
, nix-gitignore
, makeFontsConf
, iosevka-custom
, gawk
, noweb
, python3Packages
, texlive
, which
}:
stdenv.mkDerivation rec {
pname = "yurrriq-dotfiles";
version = builtins.readFile ./VERSION;
src = nix-gitignore.gitignoreSource [
".git/"
"docs"
"result*"
"machines/*/secrets/"
] ./.;
FONTCONFIG_FILE = makeFontsConf {
fontDirectories = [ iosevka-custom ];
};
configurePhase = ''
substituteInPlace ./bin/fix-underscores \
--replace '/usr/bin/env -S gawk' '${gawk}/bin/gawk'
'';
nativeBuildInputs = [
gawk
noweb
python3Packages.pygments
(
texlive.combine {
inherit noweb;
inherit (texlive) scheme-small
braket
catchfile
datatool
datetime
dirtytalk
fancyref
fmtcount
framed
frankenstein
fvextra
glossaries
glossaries-extra
hardwrap
ifplatform
latexmk
mathpazo
mfirstuc
minted
substr
titlesec
tkz-base
todonotes
tufte-latex
xetex
xindy
xfor
xstring
;
}
)
which
];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
}