2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
2022-09-09 14:08:57 +00:00
|
|
|
, fetchzip
|
2022-06-26 10:26:21 +00:00
|
|
|
, cstruct
|
2021-04-05 15:23:46 +00:00
|
|
|
, mirage-crypto
|
|
|
|
, alcotest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "pbkdf";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "1.2.0";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/abeaumont/ocaml-pbkdf/archive/${version}.tar.gz";
|
2022-06-26 10:26:21 +00:00
|
|
|
sha256 = "sha256-dGi4Vw+7VBpK/NpJ6zdpogm+E6G/oJovXCksJBSmqjI=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2022-06-26 10:26:21 +00:00
|
|
|
propagatedBuildInputs = [ cstruct mirage-crypto ];
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2021-04-05 15:23:46 +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";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|