textlint-plugin-latex2e: init at 1.2.1-unstable-2024-02-05
This commit is contained in:
parent
c4db484f14
commit
dc4a3ade28
37
pkgs/by-name/te/textlint-plugin-latex2e/package.nix
Normal file
37
pkgs/by-name/te/textlint-plugin-latex2e/package.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildNpmPackage,
|
||||
textlint,
|
||||
textlint-plugin-latex2e,
|
||||
textlint-rule-max-comma,
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "textlint-plugin-latex2e";
|
||||
version = "1.2.1-unstable-2024-02-05";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "textlint";
|
||||
repo = "textlint-plugin-latex2e";
|
||||
rev = "d3ba1be14543aaaf8e52f87d103fafb3ebb7c4b0";
|
||||
hash = "sha256-sCDpyhnznMAkIPWK0BawWZwuR9UO/ipIG2o5hyBkJQ0=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-u2cMZC3s4iGCWG6iVMDYfb6XbxfjCdwpzl7opkwtrU8=";
|
||||
|
||||
passthru.tests = textlint.testPackages {
|
||||
inherit (textlint-plugin-latex2e) pname;
|
||||
rule = textlint-rule-max-comma;
|
||||
plugin = textlint-plugin-latex2e;
|
||||
testFile = ./test.tex;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Textlint Plugin LaTeX2ε";
|
||||
homepage = "https://github.com/textlint/textlint-plugin-latex2e";
|
||||
changelog = "https://github.com/textlint/textlint-plugin-latex2e/blob/${src.rev}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ natsukium ];
|
||||
};
|
||||
}
|
4
pkgs/by-name/te/textlint-plugin-latex2e/test.tex
Normal file
4
pkgs/by-name/te/textlint-plugin-latex2e/test.tex
Normal file
@ -0,0 +1,4 @@
|
||||
\documentclass{article}
|
||||
\begin{document}
|
||||
Nix, is a tool, that takes a unique approach to package management and system configuration, Learn how to make reproducible, declarative, and reliable systems.
|
||||
\end{document}
|
@ -7,6 +7,7 @@
|
||||
makeWrapper,
|
||||
runCommand,
|
||||
textlint,
|
||||
textlint-plugin-latex2e,
|
||||
textlint-rule-alex,
|
||||
textlint-rule-diacritics,
|
||||
textlint-rule-max-comma,
|
||||
@ -99,6 +100,7 @@ buildNpmPackage rec {
|
||||
|
||||
tests = lib.mergeAttrsList (
|
||||
map (package: package.tests) [
|
||||
textlint-plugin-latex2e
|
||||
textlint-rule-alex
|
||||
textlint-rule-diacritics
|
||||
textlint-rule-max-comma
|
||||
|
Loading…
Reference in New Issue
Block a user