summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ot/otpclient/package.nix
blob: b9752da7063412c20b65859f1993e4699f945d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
  stdenv,
  lib,
  fetchFromGitHub,
  cmake,
  pkg-config,
  gtk4,
  wrapGAppsHook3,
  jansson,
  libgcrypt,
  libadwaita,
  libpng,
  libcotp,
  glib,
  protobufc,
  qrencode,
  libsecret,
  libuuid,
  zbar,
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "otpclient";
  version = "5.1.8";

  strictDeps = true;
  __structuredAttrs = true;

  src = fetchFromGitHub {
    owner = "paolostivanin";
    repo = "otpclient";
    tag = "v${finalAttrs.version}";
    hash = "sha256-8I74ip2ysPa5ll1R1O9kgZEwR2wMW6oAzcE3g1SMwvA=";
  };

  nativeBuildInputs = [
    cmake
    pkg-config
    wrapGAppsHook3
  ];

  buildInputs = [
    gtk4
    glib
    libadwaita
    jansson
    libcotp
    libgcrypt
    libpng
    libsecret
    libuuid
    protobufc
    qrencode
    zbar
  ];

  meta = {
    description = "Highly secure and easy to use OTP client written in C/GTK that supports both TOTP and HOTP";
    homepage = "https://github.com/paolostivanin/OTPClient";
    changelog = "https://github.com/paolostivanin/OTPClient/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ alexbakker ];
    platforms = lib.platforms.linux;
  };
})