depot/pkgs/development/ocaml-modules/pbkdf/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

31 lines
706 B
Nix

{ lib
, buildDunePackage
, fetchzip
, digestif
, mirage-crypto
, alcotest
, ohex
}:
buildDunePackage rec {
pname = "pbkdf";
version = "2.0.0";
src = fetchzip {
url = "https://github.com/abeaumont/ocaml-pbkdf/archive/${version}.tar.gz";
hash = "sha256-D2dXpf1D/wsJrcajU3If37tuLYjahoA/+QoXZKr1vQs=";
};
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [ digestif mirage-crypto ];
checkInputs = [ alcotest ohex ];
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";
};
}