summary refs log tree commit diff
path: root/pkgs/tools/misc/vsc-leetcode-cli/default.nix
blob: cb70f9a80eed2f50bc1de4a447833005532e44e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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";
  };
}