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