3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libcotp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
640 B
Nix
Raw Normal View History

2021-07-01 20:36:45 +01:00
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, libgcrypt, libbaseencode }:
stdenv.mkDerivation rec {
pname = "libcotp";
2022-06-27 00:06:01 +01:00
version = "1.2.6";
2021-07-01 20:36:45 +01:00
src = fetchFromGitHub {
owner = "paolostivanin";
repo = pname;
rev = "v${version}";
2022-06-27 00:06:01 +01:00
sha256 = "sha256-AMLnUFLDL592zcbVN8yaQeOJQWDLUUG+6aKh4paPGlE=";
2021-07-01 20:36:45 +01: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 ];
};
}