This commit is contained in:
2026-07-23 18:13:11 +09:00
parent 2c996ad3f1
commit 101067a32e
11 changed files with 133 additions and 10 deletions
+12 -1
View File
@@ -25,16 +25,22 @@
basePackages = [
texEnv
pkgs.fontconfig
pkgs._0xproto
pkgs.qpdf
pkgs.qpdfview
];
in
{
packages = {
inherit texEnv vimWithTex;
};
devShells.default = self.devShells.${system}.latex;
devShells.latex = pkgs.stdenv.mkDerivation {
inherit name;
shellHook = ''
export PS1="${name} \w \$ "
export FONTCONFIG_FILE="${pkgs.fontconfig.out}/etc/fonts/fonts.conf"
'';
buildInputs = basePackages ++ [
vimWithTex
@@ -44,6 +50,7 @@
inherit name;
shellHook = ''
export PS1="${name} pandoc \w \$ "
export FONTCONFIG_FILE="${pkgs.fontconfig.out}/etc/fonts/fonts.conf"
'';
buildInputs = basePackages ++ [
pkgs.pandoc
@@ -58,7 +65,11 @@
};
pandoc = {
path = ./templates/pandoc;
description = "Template for Pandoc Markdown";
description = "Template for Pandoc Single File Markdown";
};
pandoc-multi = {
path = ./templates/pandoc-multi;
description = "Template for Pandoc Multi-file Markdown";
};
};
defaultTemplate = self.templates.latex;