about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/hkdf
diff options
context:
space:
mode:
authorsternenseemann <git@lukasepple.de>2020-05-12 18:32:24 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2020-05-12 22:34:30 +0200
commitb67a5e424f55c9406ef08cd2be08ddae1b68bb35 (patch)
treec329cb08241d2291e235ba448db689d196d3ffec /pkgs/development/ocaml-modules/hkdf
parent435fd99ab6117252ef345167242929b15c711dad (diff)
ocamlPackages.hkdf: init at 1.0.4
Diffstat (limited to 'pkgs/development/ocaml-modules/hkdf')
-rw-r--r--pkgs/development/ocaml-modules/hkdf/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/hkdf/default.nix b/pkgs/development/ocaml-modules/hkdf/default.nix
new file mode 100644
index 0000000000000..9832a5f4c41bb
--- /dev/null
+++ b/pkgs/development/ocaml-modules/hkdf/default.nix
@@ -0,0 +1,26 @@
+{ lib, buildDunePackage, fetchurl, cstruct, mirage-crypto, alcotest }:
+
+buildDunePackage rec {
+  pname = "hkdf";
+  version = "1.0.4";
+
+  minimumOCamlVersion = "4.07";
+
+  src = fetchurl {
+    url = "https://github.com/hannesm/ocaml-${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
+    sha256 = "0nzx6vzbc1hh6vx1ly8df4b16lgps6zjpp9mjycsnnn49bddc9mr";
+  };
+
+  useDune2 = true;
+
+  propagatedBuildInputs = [ cstruct mirage-crypto ];
+  checkInputs = [ alcotest ];
+  doCheck = true;
+
+  meta = with lib; {
+    description = "HMAC-based Extract-and-Expand Key Derivation Function (RFC 5869)";
+    homepage = "https://github.com/hannesm/ocaml-hkdf";
+    license = licenses.mit;
+    maintainers = with maintainers; [ sternenseemann ];
+  };
+}