anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / misc / cotp / default.nix
blobe7880a90412f1d86afade0d439f693d5e97eee0e
1 { lib
2 , stdenv
3 , rustPlatform
4 , fetchFromGitHub
5 , libxcb
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "cotp";
10   version = "1.9.2";
12   src = fetchFromGitHub {
13     owner = "replydev";
14     repo = "cotp";
15     rev = "v${version}";
16     hash = "sha256-5wVIjh16AYwrzjbPgvjsQhihu/vwdQfzU2kZS6eSTWs=";
17   };
19   cargoHash = "sha256-DMswC+Qp6w7Dcp5YYV4EGWUylv/ouG0ukAdCdDnOA/8=";
21   buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libxcb ];
23   meta = with lib; {
24     homepage = "https://github.com/replydev/cotp";
25     description = "Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality";
26     license = licenses.gpl3Only;
27     maintainers = with maintainers; [ davsanchez ];
28     mainProgram = "cotp";
29   };