mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
31 lines
746 B
Nix
31 lines
746 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, libxcb
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cotp";
|
|
version = "1.9.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "replydev";
|
|
repo = "cotp";
|
|
rev = "v${version}";
|
|
hash = "sha256-5wVIjh16AYwrzjbPgvjsQhihu/vwdQfzU2kZS6eSTWs=";
|
|
};
|
|
|
|
cargoHash = "sha256-DMswC+Qp6w7Dcp5YYV4EGWUylv/ouG0ukAdCdDnOA/8=";
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libxcb ];
|
|
|
|
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 ];
|
|
mainProgram = "cotp";
|
|
};
|
|
}
|