@@ -0,0 +1,36 @@
1+{ lib
2+, buildDunePackage
3+, fetchurl
4+, ocaml
5+
6+, alcotest
7+, eqaf
8+, fmt
9+}:
10+
11+buildDunePackage rec {
12+ pname = "callipyge";
13+ version = "0.2";
14+
15+ src = fetchurl {
16+ url = "https://github.com/oklm-wsh/Callipyge/releases/download/v${version}/${pname}-${version}.tbz";
17+ sha256 = "sha256-T/94a88xvK51TggjXecdKc9kyTE9aIyueIt5T24sZB0=";
18+ };
19+
20+ useDune2 = true;
21+
22+ minimumOCamlVersion = "4.03";
23+
24+ propagatedBuildInputs = [ fmt eqaf ];
25+
26+ # alcotest isn't available for OCaml < 4.05 due to fmt
27+ doCheck = lib.versionAtLeast ocaml.version "4.05";
28+ checkInputs = [ alcotest ];
29+
30+ meta = {
31+ homepage = "https://github.com/oklm-wsh/Callipyge";
32+ description = "Curve25519 in OCaml";
33+ license = lib.licenses.mit;
34+ maintainers = with lib.maintainers; [ fufexan ];
35+ };
36+}