summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/uecc/default.nix
blob: 5e24f955b17ddb96ff61e97ee46ac38e28e32971 (plain) (blame)
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
{ lib, fetchFromGitLab, buildDunePackage, ocaml, bigstring, alcotest, cstruct, hex }:

buildDunePackage rec {
  pname = "uecc";
  version = "0.3";

  src = fetchFromGitLab {
    owner = "nomadic-labs";
    repo = "ocaml-uecc";
    rev = "v${version}";
    sha256 = "0m3cw34254baajscrwlrj0jp5n0yad3dhgi4jh3pz89iqykj15fr";
  };

  useDune2 = true;

  propagatedBuildInputs = [
    bigstring
  ];

  checkInputs = [
    alcotest
    cstruct
    hex
  ];

  doCheck = lib.versionAtLeast ocaml.version "4.08";

  meta = {
    description = "Bindings for ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors";
    homepage = "https://gitlab.com/nomadic-labs/ocaml-uecc";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.ulrikstrid ];
  };
}