159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
32 lines
790 B
Nix
32 lines
790 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, AppKit
|
|
, libxcb
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cotp";
|
|
version = "1.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "replydev";
|
|
repo = "cotp";
|
|
rev = "v${version}";
|
|
hash = "sha256-U5x8szvouoxJ+DZUlrn5wtXt+6vs62tzcWICQW3B21U=";
|
|
};
|
|
|
|
cargoHash = "sha256-o9LRXbx77EXXO7rEmpBrx2nommJgG0ikw1YzdeB0Gug=";
|
|
|
|
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";
|
|
};
|
|
}
|