mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
32 lines
773 B
Nix
32 lines
773 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
libxcb,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "cotp";
|
|
version = "1.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "replydev";
|
|
repo = "cotp";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-L/HxdNufqmNZ8pF8tQ1VuOJIz+pEQN5IRpmg2+QTYos=";
|
|
};
|
|
|
|
cargoHash = "sha256-Es9X9PDFeluHtPrOImLhWUstrawopX5yShdN0G7TuzI=";
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libxcb ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/replydev/cotp";
|
|
description = "Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ davsanchez ];
|
|
mainProgram = "cotp";
|
|
};
|
|
})
|