From abdcc293b7741be77207794d80f8304368890476 Mon Sep 17 00:00:00 2001 From: natsukium Date: Fri, 6 Sep 2024 23:46:23 +0900 Subject: [PATCH] textlint-plugin-org: init at 0.3.7 https://github.com/kijimaD/textlint-plugin-org --- .../te/textlint-plugin-org/package.nix | 37 +++++++++++++++++++ pkgs/by-name/te/textlint-plugin-org/test.org | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/by-name/te/textlint-plugin-org/package.nix create mode 100644 pkgs/by-name/te/textlint-plugin-org/test.org diff --git a/pkgs/by-name/te/textlint-plugin-org/package.nix b/pkgs/by-name/te/textlint-plugin-org/package.nix new file mode 100644 index 000000000000..71e32af51537 --- /dev/null +++ b/pkgs/by-name/te/textlint-plugin-org/package.nix @@ -0,0 +1,37 @@ +{ + lib, + fetchFromGitHub, + buildNpmPackage, + textlint, + textlint-plugin-org, + textlint-rule-max-comma, +}: + +buildNpmPackage rec { + pname = "textlint-plugin-org"; + version = "0.3.7"; + + src = fetchFromGitHub { + owner = "kijimaD"; + repo = "textlint-plugin-org"; + rev = "refs/tags/v${version}"; + hash = "sha256-BW+b09nv9Mzl3cUcOOpHoRz8tGLxuGGo4UCY6kdUlXA="; + }; + + npmDepsHash = "sha256-J1ksstPED7FwB80N4CzfZ1i2xc3Wmu7s4T3acOrWA9s="; + + passthru.tests = textlint.testPackages { + inherit (textlint-plugin-org) pname; + rule = textlint-rule-max-comma; + plugin = textlint-plugin-org; + testFile = ./test.org; + }; + + meta = { + description = "Org mode support for textlint"; + homepage = "https://github.com/kijimaD/textlint-plugin-org"; + changelog = "https://github.com/kijimaD/textlint-plugin-org/releases/tag/v${version}"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ natsukium ]; + }; +} diff --git a/pkgs/by-name/te/textlint-plugin-org/test.org b/pkgs/by-name/te/textlint-plugin-org/test.org new file mode 100644 index 000000000000..91c125e30071 --- /dev/null +++ b/pkgs/by-name/te/textlint-plugin-org/test.org @@ -0,0 +1,2 @@ +#+title: textlint-plugin-org test +Nix, is a tool, that takes a unique approach to package management and system configuration, Learn how to make reproducible, declarative, and reliable systems.