1{ lib
2, buildDunePackage
3, fetchzip
4, cstruct
5, mirage-crypto
6, alcotest
7}:
8
9buildDunePackage rec {
10 pname = "pbkdf";
11 version = "1.2.0";
12
13 duneVersion = "3";
14
15 src = fetchzip {
16 url = "https://github.com/abeaumont/ocaml-pbkdf/archive/${version}.tar.gz";
17 sha256 = "sha256-dGi4Vw+7VBpK/NpJ6zdpogm+E6G/oJovXCksJBSmqjI=";
18 };
19
20 minimalOCamlVersion = "4.08";
21 propagatedBuildInputs = [ cstruct mirage-crypto ];
22 checkInputs = [ alcotest ];
23 doCheck = true;
24
25 meta = {
26 description = "Password based key derivation functions (PBKDF) from PKCS#5";
27 maintainers = [ lib.maintainers.sternenseemann ];
28 license = lib.licenses.bsd2;
29 homepage = "https://github.com/abeaumont/ocaml-pbkdf";
30 };
31}
32