2021-07-04 02:40:35 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, libgcrypt, libbaseencode }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcotp";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "1.2.8";
|
2021-07-04 02:40:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "paolostivanin";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-XWrLtWoYIEyGSwc1Qq1Q2NTn0USm1ekVyLWuwvppOZE=";
|
2021-07-04 02:40:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libbaseencode libgcrypt ];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "C library that generates TOTP and HOTP";
|
|
|
|
homepage = "https://github.com/paolostivanin/libcotp";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ alexbakker ];
|
|
|
|
};
|
|
|
|
}
|