2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, Security }:
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cloak";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.3.0";
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "evansmurithi";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
hash = "sha256-Pd2aorsXdHB1bs609+S5s+WV5M1ql48yIKaoN8SEvsg=";
|
2021-09-26 12:46:18 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
cargoHash = "sha256-m11A5fcJzWoDZglrr2Es1V5ZJNepEkGeIRVhexJ7jws=";
|
2021-09-26 12:46:18 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/evansmurithi/cloak";
|
|
|
|
description = "Command-line OTP authenticator application";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mvs ];
|
|
|
|
};
|
|
|
|
}
|