mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
37 lines
797 B
Nix
37 lines
797 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, gtk3
|
|
, wrapGAppsHook
|
|
, jansson
|
|
, libgcrypt
|
|
, libzip
|
|
, libpng
|
|
, libcotp
|
|
, zbar
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "otpclient";
|
|
version = "2.4.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "paolostivanin";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-UR7h+btmOSnpjkrQMiABcM1tOFjOhNVWuKYDF9qXfFo=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|