Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 22.05-pre 23 lines 641 B view raw
1{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, libgcrypt, libbaseencode }: 2 3stdenv.mkDerivation rec { 4 pname = "libcotp"; 5 version = "1.2.3"; 6 7 src = fetchFromGitHub { 8 owner = "paolostivanin"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "1qq4shwiz1if9vys052dnsbm4dfw1ynlj6nsb0v4zjly3ndspfsk"; 12 }; 13 14 buildInputs = [ libbaseencode libgcrypt ]; 15 nativeBuildInputs = [ cmake pkg-config ]; 16 17 meta = with lib; { 18 description = "C library that generates TOTP and HOTP"; 19 homepage = "https://github.com/paolostivanin/libcotp"; 20 license = licenses.asl20; 21 maintainers = with maintainers; [ alexbakker ]; 22 }; 23}