mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
markdownlint-cli: use buildNpmPackage
This commit is contained in:
parent
5a296e6d03
commit
b26ab04e7f
@ -49,6 +49,7 @@ mapAliases {
|
||||
flood = pkgs.flood; # Added 2023-07-25
|
||||
gtop = pkgs.gtop; # added 2023-07-31
|
||||
manta = pkgs.node-manta; # Added 2023-05-06
|
||||
markdownlint-cli = pkgs.markdownlint-cli; # added 2023-07-29
|
||||
readability-cli = pkgs.readability-cli; # Added 2023-06-12
|
||||
reveal-md = pkgs.reveal-md; # added 2023-07-31
|
||||
thelounge = pkgs.thelounge; # Added 2023-05-22
|
||||
|
@ -58,7 +58,6 @@
|
||||
less = "lessc";
|
||||
localtunnel = "lt";
|
||||
lua-fmt = "luafmt";
|
||||
markdownlint-cli = "markdownlint";
|
||||
near-cli = "near";
|
||||
neovim = "neovim-node-host";
|
||||
parcel-bundler = "parcel";
|
||||
|
@ -211,7 +211,6 @@
|
||||
, "lua-fmt"
|
||||
, "lv_font_conv"
|
||||
, "madoko"
|
||||
, "markdownlint-cli"
|
||||
, "markdownlint-cli2"
|
||||
, "markdown-link-check"
|
||||
, {"markdown-preview-nvim": "../../applications/editors/vim/plugins/markdown-preview-nvim"}
|
||||
|
85
pkgs/development/node-packages/node-packages.nix
generated
85
pkgs/development/node-packages/node-packages.nix
generated
@ -120097,91 +120097,6 @@ in
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
markdownlint-cli = nodeEnv.buildNodePackage {
|
||||
name = "markdownlint-cli";
|
||||
packageName = "markdownlint-cli";
|
||||
version = "0.35.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/markdownlint-cli/-/markdownlint-cli-0.35.0.tgz";
|
||||
sha512 = "lVIIIV1MrUtjoocgDqXLxUCxlRbn7Ve8rsWppfwciUNwLlNS28AhNiyQ3PU7jjj4Qvj+rWTTvwkqg7AcdG988g==";
|
||||
};
|
||||
dependencies = [
|
||||
sources."@isaacs/cliui-8.0.2"
|
||||
sources."@pkgjs/parseargs-0.11.0"
|
||||
sources."ansi-regex-5.0.1"
|
||||
sources."ansi-styles-6.2.1"
|
||||
sources."argparse-2.0.1"
|
||||
sources."balanced-match-1.0.2"
|
||||
sources."brace-expansion-2.0.1"
|
||||
sources."color-convert-2.0.1"
|
||||
sources."color-name-1.1.4"
|
||||
sources."commander-11.0.0"
|
||||
sources."cross-spawn-7.0.3"
|
||||
sources."deep-extend-0.6.0"
|
||||
sources."eastasianwidth-0.2.0"
|
||||
sources."emoji-regex-9.2.2"
|
||||
sources."entities-3.0.1"
|
||||
sources."foreground-child-3.1.1"
|
||||
sources."get-stdin-9.0.0"
|
||||
sources."glob-10.2.7"
|
||||
sources."ignore-5.2.4"
|
||||
sources."ini-3.0.1"
|
||||
sources."is-fullwidth-code-point-3.0.0"
|
||||
sources."isexe-2.0.0"
|
||||
sources."jackspeak-2.2.2"
|
||||
sources."js-yaml-4.1.0"
|
||||
sources."jsonc-parser-3.2.0"
|
||||
sources."linkify-it-4.0.1"
|
||||
sources."lru-cache-10.0.0"
|
||||
sources."markdown-it-13.0.1"
|
||||
sources."markdownlint-0.29.0"
|
||||
sources."markdownlint-micromark-0.1.5"
|
||||
sources."mdurl-1.0.1"
|
||||
sources."minimatch-9.0.3"
|
||||
sources."minimist-1.2.8"
|
||||
sources."minipass-6.0.2"
|
||||
sources."path-key-3.1.1"
|
||||
sources."path-scurry-1.10.1"
|
||||
sources."run-con-1.2.12"
|
||||
sources."shebang-command-2.0.0"
|
||||
sources."shebang-regex-3.0.0"
|
||||
sources."signal-exit-4.1.0"
|
||||
sources."string-width-5.1.2"
|
||||
(sources."string-width-cjs-4.2.3" // {
|
||||
dependencies = [
|
||||
sources."emoji-regex-8.0.0"
|
||||
sources."strip-ansi-6.0.1"
|
||||
];
|
||||
})
|
||||
(sources."strip-ansi-7.1.0" // {
|
||||
dependencies = [
|
||||
sources."ansi-regex-6.0.1"
|
||||
];
|
||||
})
|
||||
sources."strip-ansi-cjs-6.0.1"
|
||||
sources."strip-json-comments-3.1.1"
|
||||
sources."uc.micro-1.0.6"
|
||||
sources."which-2.0.2"
|
||||
sources."wrap-ansi-8.1.0"
|
||||
(sources."wrap-ansi-cjs-7.0.0" // {
|
||||
dependencies = [
|
||||
sources."ansi-styles-4.3.0"
|
||||
sources."emoji-regex-8.0.0"
|
||||
sources."string-width-4.2.3"
|
||||
sources."strip-ansi-6.0.1"
|
||||
];
|
||||
})
|
||||
];
|
||||
buildInputs = globalBuildInputs;
|
||||
meta = {
|
||||
description = "MarkdownLint Command Line Interface";
|
||||
homepage = "https://github.com/igorshubovych/markdownlint-cli#readme";
|
||||
license = "MIT";
|
||||
};
|
||||
production = true;
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
markdownlint-cli2 = nodeEnv.buildNodePackage {
|
||||
name = "markdownlint-cli2";
|
||||
packageName = "markdownlint-cli2";
|
||||
|
28
pkgs/tools/text/markdownlint-cli/default.nix
Normal file
28
pkgs/tools/text/markdownlint-cli/default.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ lib
|
||||
, buildNpmPackage
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "markdownlint-cli";
|
||||
version = "0.35.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "igorshubovych";
|
||||
repo = "markdownlint-cli";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-PkvgZn7cQafKO7p5i1fYYZrWjNcFuX700r223qUMN5I=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-hh8T2MRjUJQVibd+cY7vkJvBgNDueWuluGE3HxWOCU8=";
|
||||
|
||||
dontNpmBuild = true;
|
||||
|
||||
meta = {
|
||||
description = "Command line interface for MarkdownLint";
|
||||
homepage = "https://github.com/igorshubovych/markdownlint-cli";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "markdownlint";
|
||||
maintainers = with lib.maintainers; [ ambroisie ];
|
||||
};
|
||||
}
|
@ -1816,6 +1816,8 @@ with pkgs;
|
||||
|
||||
linux-router-without-wifi = linux-router.override { useWifiDependencies = false; };
|
||||
|
||||
markdownlint-cli = callPackage ../tools/text/markdownlint-cli { };
|
||||
|
||||
mbidled = callPackage ../tools/networking/mbidled { };
|
||||
|
||||
metapixel = callPackage ../tools/graphics/metapixel { };
|
||||
|
Loading…
Reference in New Issue
Block a user