2020-05-15 21:57:56 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl, benchmark, cstruct
|
2020-08-20 17:08:02 +00:00
|
|
|
, alcotest , eqaf, hex, ppx_blob, ppx_deriving_yojson, stdlib-shims, yojson }:
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "hacl_x25519";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "0.2.0";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/hacl/releases/download/v${version}/${pname}-v${version}.tbz";
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "0ppq56i2yhxzz38w120aynnkx10kncl86zvqip9zx0v4974k3k4x";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
useDune2 = true;
|
2020-05-15 21:57:56 +00:00
|
|
|
propagatedBuildInputs = [ eqaf cstruct ];
|
2020-08-20 17:08:02 +00:00
|
|
|
checkInputs = [ alcotest benchmark hex ppx_blob ppx_deriving_yojson stdlib-shims yojson ];
|
2020-05-15 21:57:56 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Primitives for Elliptic Curve Cryptography taken from Project Everest";
|
|
|
|
homepage = "https://github.com/mirage/hacl";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|