Skip to content

Commit

Permalink
Add lacheck hook
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelvanstraten committed Apr 10, 2024
1 parent 70f5040 commit 5069220
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,12 @@ in
};
};
};
lacheck = mkOption {
description = lib.mdDoc "lacheck hook";
type = types.submodule {
imports = [ hookModule ];
};
};
lua-ls = mkOption {
description = lib.mdDoc "lua-ls hook";
type = types.submodule {
Expand Down Expand Up @@ -2524,6 +2530,14 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
package = tools.latexindent;
entry = "${hooks.latexindent.package}/bin/latexindent ${hooks.latexindent.settings.flags}";
};
lacheck =
{
name = "lacheck";
description = "A consistency checker for LaTeX documents.";
types = [ "file" "tex" ];
package = tools.lacheck;
entry = "${hooks.lacheck.package}/bin/lacheck";
};
lua-ls =
let
# .luarc.json has to be in a directory,
Expand Down
3 changes: 3 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ in
dune-build-opam-files = callPackage ./dune-build-opam-files { dune = dune_3; inherit (pkgsBuildBuild) ocaml; };
dune-fmt = callPackage ./dune-fmt { dune = dune_3; inherit (pkgsBuildBuild) ocaml; };
latexindent = tex;
lacheck = texlive.combine {
inherit (texlive) lacheck scheme-basic;
};
chktex = tex;
commitizen = commitizen.overrideAttrs (_: _: { doCheck = false; });
bats = if bats ? withLibraries then (bats.withLibraries (p: [ p.bats-support p.bats-assert p.bats-file ])) else bats;
Expand Down

0 comments on commit 5069220

Please sign in to comment.