2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
2022-06-26 10:26:21 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, 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
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "abeaumont";
|
|
|
|
repo = "ocaml-pbkdf";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-dGi4Vw+7VBpK/NpJ6zdpogm+E6G/oJovXCksJBSmqjI=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
propagatedBuildInputs = [ cstruct mirage-crypto ];
|
2021-04-05 15:23:46 +00:00
|
|
|
checkInputs = [ alcotest ];
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|