forked from dnadales/nix-latex-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
30 lines (25 loc) · 876 Bytes
/
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
{ sources ? import ./nix/sources.nix # See: https://github.com/nmattia/niv and https://nix.dev/tutorials/towards-reproducibility-pinning-nixpkgs.html#dependency-management-with-niv
, pkgs ? import sources.nixpkgs {} # Use the pinned sources.
}:
with pkgs;
stdenv.mkDerivation {
name = "mydoc";
buildInputs = [ (texlive.combine {
inherit (texlive)
scheme-small
# Add other LaTeX libraries (packages) here as needed, e.g:
# stmaryrd amsmath pgf
# build tools
latexmk
;
})
glibcLocales
];
src = ./.;
buildPhase = "make";
meta = with lib; {
description = "Describe your document here";
license = licenses.bsd3;
platforms = platforms.linux;
};
}