This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/document/template/Latex.nix

54 lines
918 B
Nix
Raw Normal View History

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