Skip to content

Commit 40e6053

Browse files
authored
Merge pull request #429 from michaelvanstraten/master
Add lacheck hook
2 parents 70f5040 + 5069220 commit 40e6053

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

modules/hooks.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,12 @@ in
594594
};
595595
};
596596
};
597+
lacheck = mkOption {
598+
description = lib.mdDoc "lacheck hook";
599+
type = types.submodule {
600+
imports = [ hookModule ];
601+
};
602+
};
597603
lua-ls = mkOption {
598604
description = lib.mdDoc "lua-ls hook";
599605
type = types.submodule {
@@ -2524,6 +2530,14 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
25242530
package = tools.latexindent;
25252531
entry = "${hooks.latexindent.package}/bin/latexindent ${hooks.latexindent.settings.flags}";
25262532
};
2533+
lacheck =
2534+
{
2535+
name = "lacheck";
2536+
description = "A consistency checker for LaTeX documents.";
2537+
types = [ "file" "tex" ];
2538+
package = tools.lacheck;
2539+
entry = "${hooks.lacheck.package}/bin/lacheck";
2540+
};
25272541
lua-ls =
25282542
let
25292543
# .luarc.json has to be in a directory,

nix/tools.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ in
173173
dune-build-opam-files = callPackage ./dune-build-opam-files { dune = dune_3; inherit (pkgsBuildBuild) ocaml; };
174174
dune-fmt = callPackage ./dune-fmt { dune = dune_3; inherit (pkgsBuildBuild) ocaml; };
175175
latexindent = tex;
176+
lacheck = texlive.combine {
177+
inherit (texlive) lacheck scheme-basic;
178+
};
176179
chktex = tex;
177180
commitizen = commitizen.overrideAttrs (_: _: { doCheck = false; });
178181
bats = if bats ? withLibraries then (bats.withLibraries (p: [ p.bats-support p.bats-assert p.bats-file ])) else bats;

0 commit comments

Comments
 (0)