about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/pbkdf/default.nix
blob: 5dedd200a825c851e2ae07a4c2c5b27fec6eab6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib
, buildDunePackage
, fetchzip
, cstruct
, mirage-crypto
, alcotest
}:

buildDunePackage rec {
  pname = "pbkdf";
  version = "1.2.0";

  duneVersion = "3";

  src = fetchzip {
    url = "https://github.com/abeaumont/ocaml-pbkdf/archive/${version}.tar.gz";
    sha256 = "sha256-dGi4Vw+7VBpK/NpJ6zdpogm+E6G/oJovXCksJBSmqjI=";
  };

  minimalOCamlVersion = "4.08";
  propagatedBuildInputs = [ cstruct mirage-crypto ];
  nativeCheckInputs = [ 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";
  };
}