nixpkgs/pkgs/applications/misc/cotp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
764 B
Nix
Raw Normal View History

2022-11-12 00:26:40 +00:00
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, AppKit
, libxcb
}:
rustPlatform.buildRustPackage rec {
2023-01-28 04:20:00 +00:00
pname = "cotp";
2023-03-05 01:55:55 +00:00
version = "1.2.3";
2022-11-12 00:26:40 +00:00
src = fetchFromGitHub {
owner = "replydev";
repo = "cotp";
rev = "v${version}";
2023-03-05 01:55:55 +00:00
hash = "sha256-Pg07iq2jj8cUA4iQsY52cujmUZLYrbTG5Zj+lITxpls=";
2022-11-12 00:26:40 +00:00
};
cargoHash = "sha256-9jOrDFLnzjxqN2h6e1/qKRn5RQKlfyeKKmjZthQX3jM=";
2022-11-12 00:26:40 +00:00
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 ];
};
}