btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / ot / otpclient / package.nix
blobd850da3b58f8a96eb5b8f30133af1594cf118178
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , cmake
5 , pkg-config
6 , gtk3
7 , wrapGAppsHook3
8 , jansson
9 , libgcrypt
10 , libzip
11 , libpng
12 , libcotp
13 , protobuf
14 , protobufc
15 , qrencode
16 , libsecret
17 , libuuid
18 , zbar
21 stdenv.mkDerivation rec {
22   pname = "otpclient";
23   version = "4.0.2";
25   src = fetchFromGitHub {
26     owner = "paolostivanin";
27     repo = pname;
28     rev = "refs/tags/v${version}";
29     hash = "sha256-lSGXxwtys3V8dDTAW7l7+9VlF9tZQnWqNaV8neBvMRg=";
30   };
32   nativeBuildInputs = [
33     cmake
34     pkg-config
35     wrapGAppsHook3
36   ];
38   buildInputs = [
39     gtk3
40     jansson
41     libcotp
42     libgcrypt
43     libpng
44     libsecret
45     libuuid
46     libzip
47     protobuf
48     protobufc
49     qrencode
50     zbar
51   ];
53   meta = with lib; {
54     description = "Highly secure and easy to use OTP client written in C/GTK that supports both TOTP and HOTP";
55     homepage = "https://github.com/paolostivanin/OTPClient";
56     changelog = "https://github.com/paolostivanin/OTPClient/releases/tag/v${version}";
57     license = licenses.gpl3Only;
58     maintainers = with maintainers; [ alexbakker ];
59     platforms = platforms.linux;
60   };