1{ lib, fetchFromGitLab, buildDunePackage, ocaml, bigstring, alcotest, cstruct, hex }:
2
3buildDunePackage rec {
4 pname = "uecc";
5 version = "0.3";
6
7 src = fetchFromGitLab {
8 owner = "nomadic-labs";
9 repo = "ocaml-uecc";
10 rev = "v${version}";
11 sha256 = "0m3cw34254baajscrwlrj0jp5n0yad3dhgi4jh3pz89iqykj15fr";
12 };
13
14 useDune2 = true;
15
16 propagatedBuildInputs = [
17 bigstring
18 ];
19
20 checkInputs = [
21 alcotest
22 cstruct
23 hex
24 ];
25
26 doCheck = lib.versionAtLeast ocaml.version "4.08";
27
28 meta = {
29 description = "Bindings for ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors";
30 homepage = "https://gitlab.com/nomadic-labs/ocaml-uecc";
31 license = lib.licenses.isc;
32 maintainers = [ lib.maintainers.ulrikstrid ];
33 };
34}