diff --git a/pkgs/development/ocaml-modules/argon2/default.nix b/pkgs/development/ocaml-modules/argon2/default.nix new file mode 100644 index 000000000000..0690ce740d3b --- /dev/null +++ b/pkgs/development/ocaml-modules/argon2/default.nix @@ -0,0 +1,40 @@ +{ + lib, + fetchurl, + ctypes, + ctypes-foreign, + dune-configurator, + result, + libargon2, + buildDunePackage, +}: + +buildDunePackage rec { + pname = "argon2"; + version = "1.0.2"; + + minimalOCamlVersion = "4.02.3"; + + src = fetchurl { + url = "https://github.com/Khady/ocaml-argon2/releases/download/${version}/argon2-${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 ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 60b0c32f3b75..5ccb767f9f93 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -46,6 +46,8 @@ let apron = callPackage ../development/ocaml-modules/apron { }; + argon2 = callPackage ../development/ocaml-modules/argon2 { }; + arg-complete = callPackage ../development/ocaml-modules/arg-complete { }; arp = callPackage ../development/ocaml-modules/arp { };