nodePackages.vsc-leetcode-cli: use buildNpmPackage

This commit is contained in:
Lord-Valen 2023-08-30 16:44:06 -04:00 committed by Robert Schütz
parent c3772a501f
commit 72ed25bfb7
6 changed files with 31 additions and 237 deletions

View file

@ -117,6 +117,7 @@ mapAliases {
triton = pkgs.triton; # Added 2023-05-06
typescript = pkgs.typescript; # Added 2023-06-21
inherit (pkgs) ungit; # added 2023-08-20
inherit (pkgs) vsc-leetcode-cli; # Added 2023-08-30
vscode-langservers-extracted = pkgs.vscode-langservers-extracted; # Added 2023-05-27
vue-cli = self."@vue/cli"; # added 2023-08-18
vue-language-server = self.vls; # added 2023-08-20

View file

@ -61,7 +61,6 @@
typescript-language-server = "typescript-language-server";
uglify-js = "uglifyjs";
undollar = "$";
vsc-leetcode-cli = "leetcode";
vscode-css-languageserver-bin = "css-languageserver";
vscode-html-languageserver-bin = "html-languageserver";
vscode-json-languageserver-bin = "json-languageserver";

View file

@ -160,7 +160,6 @@
, "katex"
, "keyoxide"
, "lcov-result-merger"
, "vsc-leetcode-cli"
, "lerna"
, "less"
, "less-plugin-clean-css"

View file

@ -94522,241 +94522,6 @@ in
bypassCache = true;
reconstructLock = true;
};
vsc-leetcode-cli = nodeEnv.buildNodePackage {
name = "vsc-leetcode-cli";
packageName = "vsc-leetcode-cli";
version = "2.8.1";
src = fetchurl {
url = "https://registry.npmjs.org/vsc-leetcode-cli/-/vsc-leetcode-cli-2.8.1.tgz";
sha512 = "C5q5wGeedHKJzs53/jrVWEeobRteB/libKrVHmLqE3zraKJBgteUN4LUNEYrAjU9O6yxgj/NPEWOLoEdRhwATw==";
};
dependencies = [
sources."abab-1.0.4"
sources."acorn-2.7.0"
sources."acorn-globals-1.0.9"
sources."ajv-6.12.6"
sources."ansi-regex-5.0.1"
sources."ansi-styles-3.2.1"
sources."asn1-0.2.6"
sources."assert-plus-1.0.0"
sources."async-1.5.2"
sources."asynckit-0.4.0"
sources."aws-sign2-0.7.0"
sources."aws4-1.12.0"
sources."balanced-match-1.0.2"
sources."bcrypt-pbkdf-1.0.2"
sources."boolbase-1.0.0"
sources."brace-expansion-1.1.11"
sources."camelcase-5.3.1"
sources."caseless-0.12.0"
sources."chalk-2.4.2"
sources."cheerio-0.20.0"
sources."cli-cursor-2.1.0"
sources."cli-spinners-1.3.1"
sources."cliui-7.0.4"
sources."clone-1.0.4"
sources."color-convert-1.9.3"
sources."color-name-1.1.3"
sources."colors-1.4.0"
sources."combined-stream-1.0.8"
sources."concat-map-0.0.1"
sources."core-util-is-1.0.3"
sources."css-select-1.2.0"
sources."css-what-2.1.3"
sources."cssom-0.3.8"
sources."cssstyle-0.2.37"
sources."cycle-1.0.3"
sources."dashdash-1.14.1"
sources."decamelize-1.2.0"
sources."deep-equal-0.2.2"
sources."deep-is-0.1.4"
sources."defaults-1.0.4"
sources."delayed-stream-1.0.0"
sources."dom-serializer-0.1.1"
sources."domelementtype-1.3.1"
sources."domhandler-2.3.0"
sources."domutils-1.5.1"
sources."ecc-jsbn-0.1.2"
sources."emoji-regex-8.0.0"
sources."entities-1.1.2"
sources."escalade-3.1.1"
sources."escape-string-regexp-1.0.5"
sources."escodegen-1.14.3"
sources."esprima-4.0.1"
sources."estraverse-4.3.0"
sources."esutils-2.0.3"
sources."extend-3.0.2"
sources."extsprintf-1.3.0"
sources."eyes-0.1.8"
sources."fast-deep-equal-3.1.3"
sources."fast-json-stable-stringify-2.1.0"
sources."fast-levenshtein-2.0.6"
sources."find-up-4.1.0"
sources."forever-agent-0.6.1"
sources."form-data-2.3.3"
sources."fs.realpath-1.0.0"
sources."get-caller-file-2.0.5"
sources."getpass-0.1.7"
sources."glob-7.2.3"
sources."har-schema-2.0.0"
sources."har-validator-5.1.5"
sources."has-flag-3.0.0"
sources."he-1.2.0"
(sources."htmlparser2-3.8.3" // {
dependencies = [
sources."entities-1.0.0"
];
})
sources."http-signature-1.2.0"
sources."i-0.3.7"
sources."inflight-1.0.6"
sources."inherits-2.0.4"
sources."ini-2.0.0"
sources."is-fullwidth-code-point-3.0.0"
sources."is-typedarray-1.0.0"
sources."isarray-0.0.1"
sources."isstream-0.1.2"
sources."jsbn-0.1.1"
sources."jsdom-7.2.2"
sources."json-schema-0.4.0"
sources."json-schema-traverse-0.4.1"
sources."json-stringify-safe-5.0.1"
sources."jsprim-1.4.2"
sources."levn-0.3.0"
sources."locate-path-5.0.0"
sources."lodash-4.17.21"
sources."log-symbols-2.2.0"
sources."mime-db-1.52.0"
sources."mime-types-2.1.35"
sources."mimic-fn-1.2.0"
sources."minimatch-3.1.2"
sources."minimist-1.2.8"
sources."mkdirp-1.0.4"
sources."moment-2.29.4"
sources."mute-stream-0.0.8"
(sources."nconf-0.11.4" // {
dependencies = [
sources."yargs-16.2.0"
];
})
sources."ncp-1.0.1"
sources."nth-check-1.0.2"
sources."nwmatcher-1.4.4"
sources."oauth-sign-0.9.0"
sources."once-1.4.0"
sources."onetime-2.0.1"
sources."optionator-0.8.3"
(sources."ora-3.0.0" // {
dependencies = [
sources."ansi-regex-3.0.1"
sources."strip-ansi-4.0.0"
];
})
sources."p-limit-2.3.0"
sources."p-locate-4.1.0"
sources."p-try-2.2.0"
sources."parse5-1.5.1"
sources."path-exists-4.0.0"
sources."path-is-absolute-1.0.1"
sources."performance-now-2.1.0"
sources."pkginfo-0.4.1"
sources."prelude-ls-1.1.2"
sources."prompt-1.0.0"
sources."psl-1.9.0"
sources."punycode-2.3.0"
sources."qs-6.5.3"
sources."read-1.0.7"
sources."readable-stream-1.1.14"
(sources."request-2.88.0" // {
dependencies = [
sources."punycode-1.4.1"
sources."tough-cookie-2.4.3"
];
})
sources."require-directory-2.1.1"
sources."require-main-filename-2.0.0"
sources."restore-cursor-2.0.0"
sources."revalidator-0.1.8"
sources."rimraf-2.7.1"
sources."safe-buffer-5.2.1"
sources."safer-buffer-2.1.2"
sources."sax-1.2.4"
sources."secure-keys-1.0.0"
sources."set-blocking-2.0.0"
sources."signal-exit-3.0.7"
sources."source-map-0.6.1"
sources."sshpk-1.17.0"
sources."stack-trace-0.0.10"
sources."string-width-4.2.3"
sources."string_decoder-0.10.31"
sources."strip-ansi-6.0.1"
sources."supports-color-5.5.0"
sources."symbol-tree-3.2.4"
sources."tough-cookie-2.5.0"
sources."tr46-0.0.3"
sources."tunnel-agent-0.6.0"
sources."tweetnacl-0.14.5"
sources."type-check-0.3.2"
sources."underscore-1.9.1"
sources."uri-js-4.4.1"
(sources."utile-0.3.0" // {
dependencies = [
sources."async-0.9.2"
sources."mkdirp-0.5.6"
];
})
sources."uuid-3.4.0"
(sources."verror-1.10.0" // {
dependencies = [
sources."core-util-is-1.0.2"
];
})
sources."wcwidth-1.0.1"
sources."webidl-conversions-2.0.1"
sources."whatwg-url-compat-0.6.5"
sources."which-module-2.0.1"
(sources."winston-2.1.1" // {
dependencies = [
sources."async-1.0.0"
sources."colors-1.0.3"
sources."pkginfo-0.3.1"
];
})
sources."word-wrap-1.2.5"
sources."wordwrap-1.0.0"
(sources."wrap-ansi-7.0.0" // {
dependencies = [
sources."ansi-styles-4.3.0"
sources."color-convert-2.0.1"
sources."color-name-1.1.4"
];
})
sources."wrappy-1.0.2"
sources."xml-name-validator-2.0.1"
sources."y18n-5.0.8"
(sources."yargs-15.4.1" // {
dependencies = [
sources."ansi-styles-4.3.0"
sources."cliui-6.0.0"
sources."color-convert-2.0.1"
sources."color-name-1.1.4"
sources."wrap-ansi-6.2.0"
sources."y18n-4.0.3"
sources."yargs-parser-18.1.3"
];
})
sources."yargs-parser-20.2.9"
];
buildInputs = globalBuildInputs;
meta = {
description = "A cli tool to enjoy leetcode!";
homepage = "https://github.com/leetcode-tools/leetcode-cli#readme";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
lerna = nodeEnv.buildNodePackage {
name = "lerna";
packageName = "lerna";

View file

@ -0,0 +1,28 @@
{ buildNpmPackage
, fetchFromGitHub
, lib
}:
buildNpmPackage {
pname = "vsc-leetcode-cli";
version = "unstable-2021-04-11";
src = fetchFromGitHub {
owner = "leetcode-tools";
repo = "leetcode-cli";
rev = "c5f6b8987185ae9f181e138f999825516240f44c";
hash = "sha256-N8hQqIzCUYTT5RAd0eqNynSNkGiN4omFY+8QLBemIbs=";
};
npmDepsHash = "sha256-t8eEnyAKeDmbmduUXuxo/WbJTced5dLeJTbtjxrrxY8=";
dontNpmBuild = true;
meta = with lib; {
description = "A CLI tool for leetcode.com";
homepage = "https://github.com/leetcode-tools/leetcode-cli";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
mainProgram = "leetcode";
};
}

View file

@ -41556,6 +41556,8 @@ with pkgs;
inherit (gst_all_1) gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly;
};
vsc-leetcode-cli = callPackage ../tools/misc/vsc-leetcode-cli { };
vsh = callPackage ../tools/misc/vsh { };
vttest = callPackage ../tools/misc/vttest { };