1{ buildNpmPackage
2, fetchFromGitHub
3, lib
4}:
5
6buildNpmPackage {
7 pname = "vsc-leetcode-cli";
8 version = "unstable-2021-04-11";
9
10 src = fetchFromGitHub {
11 owner = "leetcode-tools";
12 repo = "leetcode-cli";
13 rev = "c5f6b8987185ae9f181e138f999825516240f44c";
14 hash = "sha256-N8hQqIzCUYTT5RAd0eqNynSNkGiN4omFY+8QLBemIbs=";
15 };
16
17 npmDepsHash = "sha256-t8eEnyAKeDmbmduUXuxo/WbJTced5dLeJTbtjxrrxY8=";
18
19 dontNpmBuild = true;
20
21 meta = with lib; {
22 description = "A CLI tool for leetcode.com";
23 homepage = "https://github.com/leetcode-tools/leetcode-cli";
24 license = licenses.mit;
25 maintainers = with maintainers; [ cpcloud ];
26 mainProgram = "leetcode";
27 };
28}