ca5ab3a501
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
23 lines
640 B
Nix
23 lines
640 B
Nix
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, libgcrypt, libbaseencode }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libcotp";
|
|
version = "1.2.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "paolostivanin";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-AMLnUFLDL592zcbVN8yaQeOJQWDLUUG+6aKh4paPGlE=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|