83627f9931
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
32 lines
790 B
Nix
32 lines
790 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, AppKit
|
|
, libxcb
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cotp";
|
|
version = "1.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "replydev";
|
|
repo = "cotp";
|
|
rev = "v${version}";
|
|
hash = "sha256-6FriNAwxo+YnJWmCrScyafUEkJvEJz3O9Zoj9yerpSI=";
|
|
};
|
|
|
|
cargoHash = "sha256-/CW0CGhPjKd5oU2LYW4lPWKMATn9aJdjIy44yZJyU/E=";
|
|
|
|
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 ];
|
|
mainProgram = "cotp";
|
|
};
|
|
}
|