lol
1{ lib
2, buildNpmPackage
3, fetchFromGitHub
4}:
5
6buildNpmPackage rec {
7 pname = "markdownlint-cli2";
8 version = "0.9.0";
9
10 src = fetchFromGitHub {
11 owner = "DavidAnson";
12 repo = "markdownlint-cli2";
13 rev = "v${version}";
14 hash = "sha256-qtdR7Rhz+HLZJX82OrN+twOsvFOv99e4BBDVV1UayPI=";
15 };
16
17 npmDepsHash = "sha256-Fx0lDcvzLRVSAX0apKmu1CBfnGmGQR9FQEdhHUtue/c=";
18
19 postPatch = ''
20 ln -s npm-shrinkwrap.json package-lock.json
21 '';
22
23 dontNpmBuild = true;
24
25 meta = {
26 changelog = "https://github.com/DavidAnson/markdownlint-cli2/blob/${src.rev}/CHANGELOG.md";
27 description = "A fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the markdownlint library";
28 homepage = "https://github.com/DavidAnson/markdownlint-cli2";
29 license = lib.licenses.mit;
30 maintainers = with lib.maintainers; [ natsukium ];
31 };
32}