2022-09-09 14:08:57 +00:00
|
|
|
{ lib, fetchFromGitLab, buildDunePackage, ocaml, bigstring, alcotest, cstruct, hex }:
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Bindings for ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://gitlab.com/nomadic-labs/ocaml-uecc";
|
2021-07-14 22:03:04 +00:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.ulrikstrid ];
|
|
|
|
};
|
|
|
|
}
|