mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
ebc2389134
diff of `jq <packages.json 'to_entries[]|"\(.key) \(.value.meta.changelog)"' -r`: https://gist.github.com/pbsds/49b2e2ae5c9b967a0972bbc3c2597c12
35 lines
878 B
Nix
35 lines
878 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildNpmPackage,
|
|
textlint,
|
|
textlint-rule-alex,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "textlint-rule-alex";
|
|
version = "5.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "textlint-rule";
|
|
repo = "textlint-rule-alex";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-1JoiUhiRXZWIyLAJXp5ZzFAa/NBCN79jYh5kMNbO0jI=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-ovDDiOZ415ubyDqbLNggzoVuqUWsRlG3zlhRW6xU3SQ=";
|
|
|
|
passthru.tests = textlint.testPackages {
|
|
rule = textlint-rule-alex;
|
|
testFile = ./test.md;
|
|
};
|
|
|
|
meta = {
|
|
description = "Textlint rule for alex";
|
|
homepage = "https://github.com/textlint-rule/textlint-rule-alex";
|
|
changelog = "https://github.com/textlint-rule/textlint-rule-alex/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ natsukium ];
|
|
};
|
|
}
|