dae973cb59
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
31 lines
763 B
Nix
31 lines
763 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, AppKit
|
|
, libxcb
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
name = "cotp";
|
|
version = "1.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "replydev";
|
|
repo = "cotp";
|
|
rev = "v${version}";
|
|
hash = "sha256-Pg07iq2jj8cUA4iQsY52cujmUZLYrbTG5Zj+lITxpls=";
|
|
};
|
|
|
|
cargoHash = "sha256-gH9axiM0Qgl2TdJUpnDONHtU2I5l03SrKEe+2l5V21Y=";
|
|
|
|
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 ];
|
|
};
|
|
}
|