2023-01-20 10:41:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, AppKit
|
|
|
|
, libxcb
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "cotp";
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "1.7.1";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "replydev";
|
|
|
|
repo = "cotp";
|
|
|
|
rev = "v${version}";
|
2024-06-24 18:47:55 +00:00
|
|
|
hash = "sha256-6FriNAwxo+YnJWmCrScyafUEkJvEJz3O9Zoj9yerpSI=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
cargoHash = "sha256-/CW0CGhPjKd5oU2LYW4lPWKMATn9aJdjIy44yZJyU/E=";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isLinux [ libxcb ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ AppKit ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/replydev/cotp";
|
|
|
|
description = "Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ davsanchez ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "cotp";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
}
|