mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
24 lines
640 B
Nix
24 lines
640 B
Nix
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, libgcrypt, libbaseencode }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libcotp";
|
|
version = "2.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "paolostivanin";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-99Uw/BMk2bLj+/FZd7MwrRw62XcCroO9yNWdtH5AFpE=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|