2024-03-10 11:42:33 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
description = "LuaLaTeX build env.";
|
2024-03-10 11:42:33 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
};
|
2024-03-10 11:42:33 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
outputs =
|
|
|
|
{ self, nixpkgs }@inputs:
|
|
|
|
let
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
system = "x86_64-linux";
|
|
|
|
tex = (
|
|
|
|
pkgs.texlive.combine {
|
|
|
|
inherit (pkgs.texlive)
|
|
|
|
amsmath
|
|
|
|
babel
|
|
|
|
capt-of
|
|
|
|
catchfile
|
|
|
|
collection-fontsextra
|
|
|
|
cyrillic
|
|
|
|
dvipng
|
|
|
|
dvisvgm
|
|
|
|
environ
|
|
|
|
etoolbox
|
|
|
|
fancyhdr
|
|
|
|
fontspec
|
|
|
|
geometry
|
|
|
|
hyperref
|
|
|
|
listofitems
|
|
|
|
luacode
|
|
|
|
luatexbase
|
|
|
|
montserrat
|
|
|
|
parskip
|
|
|
|
pgf
|
|
|
|
scheme-basic
|
|
|
|
tcolorbox
|
|
|
|
tocloft
|
|
|
|
ulem
|
|
|
|
wrapfig
|
|
|
|
xcolor
|
|
|
|
;
|
2024-03-10 11:42:33 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
#(setq org-latex-compiler "lualatex")
|
|
|
|
#(setq org-preview-latex-default-process 'dvisvgm)
|
|
|
|
}
|
|
|
|
);
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells.${system} = {
|
|
|
|
default = pkgs.mkShell rec {
|
|
|
|
nativeBuildInputs = with pkgs; [ tex ];
|
|
|
|
buildInputs = with pkgs; [ ];
|
|
|
|
SOURCE_DATE_EPOCH = "${toString self.lastModified}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-03-10 11:42:33 +03:00
|
|
|
}
|