mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
6b9bd9d56f
otpclient: restrict platforms
43 lines
932 B
Nix
43 lines
932 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, gtk3
|
|
, wrapGAppsHook
|
|
, jansson
|
|
, libgcrypt
|
|
, libzip
|
|
, libpng
|
|
, libcotp
|
|
, protobuf
|
|
, protobufc
|
|
, qrencode
|
|
, libsecret
|
|
, libuuid
|
|
, zbar
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "otpclient";
|
|
version = "3.1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "paolostivanin";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-/1nycFh/slcfztfaZA6p9rZTWS4/vkb/Sovc94zlfCI=";
|
|
};
|
|
|
|
buildInputs = [ gtk3 jansson libgcrypt libzip libpng libcotp zbar protobuf protobufc libsecret qrencode libuuid ];
|
|
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 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|