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

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

62 lines
1.1 KiB
Nix
Raw Normal View History

2021-07-01 19:38:25 +00:00
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, gtk3
, wrapGAppsHook
, jansson
, libgcrypt
, libzip
, libpng
, libcotp
, protobuf
, protobufc
, qrencode
, libsecret
, libuuid
2021-07-01 19:38:25 +00:00
, zbar
}:
stdenv.mkDerivation rec {
pname = "otpclient";
2024-03-15 23:29:42 +00:00
version = "3.6.0";
2021-07-01 19:38:25 +00:00
src = fetchFromGitHub {
owner = "paolostivanin";
repo = pname;
2023-05-31 06:54:12 +00:00
rev = "refs/tags/v${version}";
2024-03-15 23:29:42 +00:00
hash = "sha256-3Nv2ci8MBjvWc7gF5UOJnyfSV8XK0REN1XwI8RUYgWI=";
2021-07-01 19:38:25 +00:00
};
2023-05-31 06:56:23 +00:00
nativeBuildInputs = [
cmake
pkg-config
wrapGAppsHook
];
buildInputs = [
gtk3
jansson
libcotp
libgcrypt
libpng
libsecret
libuuid
libzip
protobuf
protobufc
qrencode
zbar
];
2021-07-01 19:38:25 +00:00
meta = with lib; {
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";
2023-05-31 06:54:12 +00:00
changelog = "https://github.com/paolostivanin/OTPClient/releases/tag/v${version}";
2021-07-01 19:38:25 +00:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ alexbakker ];
2023-03-17 19:12:37 +00:00
platforms = platforms.linux;
2021-07-01 19:38:25 +00:00
};
}