Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitLab, buildDunePackage, ocaml, bigstring, alcotest, cstruct, hex }:
2
3buildDunePackage rec {
4 pname = "uecc";
5 version = "0.4";
6
7 duneVersion = "3";
8
9 src = fetchFromGitLab {
10 owner = "nomadic-labs";
11 repo = "ocaml-uecc";
12 rev = "v${version}";
13 hash = "sha256-o/DylUx+olRRloiCU6b1t/xOmW8A5IZB2n3U7fkMo80=";
14 };
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}