a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
31 lines
763 B
Nix
31 lines
763 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, AppKit
|
|
, libxcb
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
name = "cotp";
|
|
version = "1.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "replydev";
|
|
repo = "cotp";
|
|
rev = "v${version}";
|
|
hash = "sha256-DIb/lgJxwg+QuqzN/0YoUV1iZwRqh6PAN0KRK7TbWDs=";
|
|
};
|
|
|
|
cargoHash = "sha256-uvH4mdI8ya/MJJngXQ98oXjG7JjUdvPwIzvJrdwlOEE=";
|
|
|
|
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 ];
|
|
};
|
|
}
|