2022-08-23 06:04:50 +00:00
|
|
|
{ lib, fetchFromGitLab, buildDunePackage, ocaml, bigstring, alcotest, cstruct, hex }:
|
2021-07-07 07:41:54 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "uecc";
|
2022-12-05 08:32:22 +00:00
|
|
|
version = "0.4";
|
2021-07-07 07:41:54 +00:00
|
|
|
|
2023-03-22 05:11:54 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
|
2021-07-07 07:41:54 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "nomadic-labs";
|
|
|
|
repo = "ocaml-uecc";
|
|
|
|
rev = "v${version}";
|
2022-12-05 08:32:22 +00:00
|
|
|
hash = "sha256-o/DylUx+olRRloiCU6b1t/xOmW8A5IZB2n3U7fkMo80=";
|
2021-07-07 07:41:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bigstring
|
|
|
|
];
|
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [
|
2021-07-07 07:41:54 +00:00
|
|
|
alcotest
|
|
|
|
cstruct
|
|
|
|
hex
|
|
|
|
];
|
|
|
|
|
2022-08-23 06:04:50 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2021-07-07 07:41:54 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Bindings for ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors";
|
2021-11-10 10:37:56 +00:00
|
|
|
homepage = "https://gitlab.com/nomadic-labs/ocaml-uecc";
|
2021-07-07 07:41:54 +00:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.ulrikstrid ];
|
|
|
|
};
|
|
|
|
}
|