Diff: https://github.com/paolostivanin/libcotp/compare/v3.1.1...v4.1.0 Changelogs: - https://github.com/paolostivanin/libcotp/releases/tag/v4.1.0 - https://github.com/paolostivanin/libcotp/releases/tag/v4.0.1 - https://github.com/paolostivanin/libcotp/releases/tag/v4.0.0
38 lines
814 B
Nix
38 lines
814 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
libgcrypt,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libcotp";
|
|
version = "4.1.0";
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "paolostivanin";
|
|
repo = "libcotp";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-iNmCQHAl2LIkdJiVByc9CWiJSTo1HIz5Ma5Xjo2n9mA=";
|
|
};
|
|
|
|
buildInputs = [ libgcrypt ];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
meta = {
|
|
description = "C library that generates TOTP and HOTP";
|
|
homepage = "https://github.com/paolostivanin/libcotp";
|
|
changelog = "https://github.com/paolostivanin/libcotp/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ alexbakker ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|