added LaTeX template

This commit is contained in:
2026-05-28 00:47:46 +09:00
parent 67f994d7ee
commit 5f2b85feeb
17 changed files with 183 additions and 60 deletions
+13 -11
View File
@@ -22,19 +22,25 @@
vimWithTex = import ./nix/vim.nix { inherit pkgs; lib = pkgs.lib; };
texEnv = import ./nix/latex.nix { inherit pkgs; };
basePackages = [
texEnv
pkgs.qpdf
pkgs.qpdfview
];
in
{
devShells.default = pkgs.stdenv.mkDerivation {
templates = {
latex = {};
};
devShells.default = self.devShells.${system}.latex;
devShells.latex = pkgs.stdenv.mkDerivation {
inherit name;
shellHook = ''
export PS1="${name} \w \$ "
'';
buildInputs = [
texEnv
buildInputs = basePackages ++ [
vimWithTex
pkgs._0xproto
pkgs.qpdf
pkgs.kdePackages.okular
];
};
devShells.pandoc = pkgs.stdenv.mkDerivation {
@@ -42,12 +48,8 @@
shellHook = ''
export PS1="${name} pandoc \w \$ "
'';
buildInputs = [
texEnv
buildInputs = basePackages ++ [
pkgs.pandoc
pkgs._0xproto
pkgs.qpdf
pkgs.qpdfview
];
};
}