3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/otpclient/default.nix

37 lines
797 B
Nix
Raw Normal View History

2021-07-01 20:38:25 +01:00
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, gtk3
, wrapGAppsHook
, jansson
, libgcrypt
, libzip
, libpng
, libcotp
, zbar
}:
stdenv.mkDerivation rec {
pname = "otpclient";
2021-12-07 23:14:37 +00:00
version = "2.4.7";
2021-07-01 20:38:25 +01:00
src = fetchFromGitHub {
owner = "paolostivanin";
repo = pname;
rev = "v${version}";
2021-12-07 23:14:37 +00:00
sha256 = "sha256-UR7h+btmOSnpjkrQMiABcM1tOFjOhNVWuKYDF9qXfFo=";
2021-07-01 20:38:25 +01:00
};
buildInputs = [ gtk3 jansson libgcrypt libzip libpng libcotp zbar ];
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ];
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";
license = licenses.gpl3Only;
maintainers = with maintainers; [ alexbakker ];
};
}