15 rustPlatform.buildRustPackage rec {
16 pname = "leetcode-cli";
20 inherit pname version;
21 sha256 = "sha256-Yr8Jsy8863O6saaFRAxssni+PtK7XYe+Iifgxu8Rx6Q=";
24 cargoHash = "sha256-rab/oLr27UOlnwUUB1RXC/egLoYyzmVtzN1L+AGed8o=";
35 ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
38 installShellCompletion --cmd leetcode \
39 --bash <($out/bin/leetcode completions bash) \
40 --fish <($out/bin/leetcode completions fish) \
41 --zsh <($out/bin/leetcode completions zsh)
44 passthru.tests = testers.testVersion {
45 package = leetcode-cli;
46 command = "leetcode -V";
47 version = "leetcode ${version}";
51 description = "May the code be with you 👻";
52 longDescription = "Use leetcode.com in command line";
53 homepage = "https://github.com/clearloop/leetcode-cli";
54 license = licenses.mit;
55 maintainers = with maintainers; [ congee ];
56 mainProgram = "leetcode";