2021-04-05 11:38:27 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
2022-05-31 19:55:11 +00:00
|
|
|
, fetchzip
|
2024-10-11 19:48:19 +00:00
|
|
|
, digestif
|
2021-04-05 11:38:27 +00:00
|
|
|
, mirage-crypto
|
|
|
|
, alcotest
|
2024-10-11 19:48:19 +00:00
|
|
|
, ohex
|
2021-04-05 11:38:27 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "pbkdf";
|
2024-10-11 19:48:19 +00:00
|
|
|
version = "2.0.0";
|
2023-01-30 06:26:44 +00:00
|
|
|
|
2022-05-31 19:55:11 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/abeaumont/ocaml-pbkdf/archive/${version}.tar.gz";
|
2024-10-11 19:48:19 +00:00
|
|
|
hash = "sha256-D2dXpf1D/wsJrcajU3If37tuLYjahoA/+QoXZKr1vQs=";
|
2021-04-05 11:38:27 +00:00
|
|
|
};
|
|
|
|
|
2023-01-30 06:26:44 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2024-10-11 19:48:19 +00:00
|
|
|
propagatedBuildInputs = [ digestif mirage-crypto ];
|
|
|
|
checkInputs = [ alcotest ohex ];
|
2021-04-05 11:38:27 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Password based key derivation functions (PBKDF) from PKCS#5";
|
|
|
|
maintainers = [ lib.maintainers.sternenseemann ];
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
homepage = "https://github.com/abeaumont/ocaml-pbkdf";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|