2021-07-01 21:36:45 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, libgcrypt, libbaseencode }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcotp";
|
2022-01-02 21:41:02 +01:00
|
|
|
version = "1.2.4";
|
2021-07-01 21:36:45 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "paolostivanin";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-02 21:41:02 +01:00
|
|
|
sha256 = "sha256-PN0kd0CP2zrkuPTdaS3TdsdEl+Gy6CecrDSh0Bd7mRk=";
|
2021-07-01 21:36:45 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|