summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/argon2/default.nix
blob: 689bb5e50589a8696955599a6c0a4fdc376a56f5 (plain)
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
33
34
35
36
37
38
39
40
{
  lib,
  fetchurl,
  ctypes,
  ctypes-foreign,
  dune-configurator,
  result,
  libargon2,
  buildDunePackage,
}:

buildDunePackage (finalAttrs: {
  pname = "argon2";
  version = "1.0.2";

  minimalOCamlVersion = "4.02.3";

  src = fetchurl {
    url = "https://github.com/Khady/ocaml-argon2/releases/download/${finalAttrs.version}/argon2-${finalAttrs.version}.tbz";
    hash = "sha256-NDsOV4kPT2SnSfNHDBAK+VKZgHDIKxW+dNJ/C5bQ8gU=";
  };

  buildInputs = [
    dune-configurator
  ];

  propagatedBuildInputs = [
    ctypes
    ctypes-foreign
    libargon2
    result
  ];

  meta = {
    homepage = "https://github.com/Khady/ocaml-argon2";
    description = "Ocaml bindings to Argon2";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ naora ];
  };
})