1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 digestif,
6 alcotest,
7 ohex,
8}:
9
10buildDunePackage rec {
11 pname = "hkdf";
12 version = "2.0.0";
13
14 minimalOCamlVersion = "4.08";
15
16 src = fetchurl {
17 url = "https://github.com/hannesm/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
18 hash = "sha256-VLBxJ5viTTn1nK0QNIAGq/8961x0/RGHZN/C/7ITWNM=";
19 };
20
21 propagatedBuildInputs = [ digestif ];
22 checkInputs = [
23 alcotest
24 ohex
25 ];
26 doCheck = true;
27
28 meta = with lib; {
29 description = "HMAC-based Extract-and-Expand Key Derivation Function (RFC 5869)";
30 homepage = "https://github.com/hannesm/ocaml-hkdf";
31 license = licenses.mit;
32 maintainers = with maintainers; [ sternenseemann ];
33 };
34}