Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / cotp / default.nix
blob054823b86f2a3f2d7ebeb51440af6be3c2bcbf23
1 { lib
2 , stdenv
3 , rustPlatform
4 , fetchFromGitHub
5 , AppKit
6 , libxcb
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "cotp";
11   version = "1.3.0";
13   src = fetchFromGitHub {
14     owner = "replydev";
15     repo = "cotp";
16     rev = "v${version}";
17     hash = "sha256-IGk7akmHGQXLHfCCq6GXOIUnh63/sE2Ds+8H91uMKnw=";
18   };
20   cargoHash = "sha256-2SD62zlWck+DPFs8bQipd8G09134L6LotrzfAiM1Pc8=";
22   buildInputs = lib.optionals stdenv.isLinux [ libxcb ]
23     ++ lib.optionals stdenv.isDarwin [ AppKit ];
25   meta = with lib; {
26     homepage = "https://github.com/replydev/cotp";
27     description = "Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality";
28     license = licenses.gpl3Only;
29     maintainers = with maintainers; [ davsanchez ];
30   };