2021-07-04 02:40:35 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, gtk3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, jansson
|
|
|
|
, libgcrypt
|
|
|
|
, libzip
|
|
|
|
, libpng
|
|
|
|
, libcotp
|
2023-02-16 17:41:37 +00:00
|
|
|
, protobuf
|
|
|
|
, protobufc
|
|
|
|
, qrencode
|
|
|
|
, libsecret
|
|
|
|
, libuuid
|
2021-07-04 02:40:35 +00:00
|
|
|
, zbar
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "otpclient";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.2.0";
|
2021-07-04 02:40:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "paolostivanin";
|
|
|
|
repo = pname;
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-3ypEP5HQYXOyB2euvDDpKjpbCD67oE19wkmzQbyKxiI=";
|
2021-07-04 02:40:35 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
jansson
|
|
|
|
libcotp
|
|
|
|
libgcrypt
|
|
|
|
libpng
|
|
|
|
libsecret
|
|
|
|
libuuid
|
|
|
|
libzip
|
|
|
|
protobuf
|
|
|
|
protobufc
|
|
|
|
qrencode
|
|
|
|
zbar
|
|
|
|
];
|
2021-07-04 02:40:35 +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-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/paolostivanin/OTPClient/releases/tag/v${version}";
|
2021-07-04 02:40:35 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ alexbakker ];
|
2023-03-24 00:07:29 +00:00
|
|
|
platforms = platforms.linux;
|
2021-07-04 02:40:35 +00:00
|
|
|
};
|
|
|
|
}
|