leetcode-cli: init at 0.3.10
This commit is contained in:
parent
564d59b339
commit
3b93e99c67
41
pkgs/applications/misc/leetcode-cli/default.nix
Normal file
41
pkgs/applications/misc/leetcode-cli/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ lib
|
||||||
|
, fetchCrate
|
||||||
|
, rustPlatform
|
||||||
|
, pkg-config
|
||||||
|
, openssl
|
||||||
|
, dbus
|
||||||
|
, sqlite
|
||||||
|
, stdenv
|
||||||
|
, darwin
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "leetcode-cli";
|
||||||
|
version = "0.3.10";
|
||||||
|
|
||||||
|
src = fetchCrate {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "SkJLA49AXNTpiWZByII2saYLyN3bAAJTlCvhamlOEXA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "xhKF4qYOTdt8iCSPY5yT8tH3l54HdkOAIS2SBGzqsdo=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
openssl
|
||||||
|
dbus
|
||||||
|
sqlite
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "May the code be with you 👻";
|
||||||
|
longDescription = "Use leetcode.com in command line";
|
||||||
|
homepage = "https://github.com/clearloop/leetcode-cli";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ congee ];
|
||||||
|
mainProgram = "leetcode";
|
||||||
|
};
|
||||||
|
}
|
|
@ -1903,6 +1903,8 @@ with pkgs;
|
||||||
|
|
||||||
lastpass-cli = callPackage ../tools/security/lastpass-cli { };
|
lastpass-cli = callPackage ../tools/security/lastpass-cli { };
|
||||||
|
|
||||||
|
leetcode-cli = callPackage ../applications/misc/leetcode-cli { };
|
||||||
|
|
||||||
lesspass-cli = callPackage ../tools/security/lesspass-cli { };
|
lesspass-cli = callPackage ../tools/security/lesspass-cli { };
|
||||||
|
|
||||||
lsix = callPackage ../tools/graphics/lsix { };
|
lsix = callPackage ../tools/graphics/lsix { };
|
||||||
|
|
Loading…
Reference in New Issue
Block a user