2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, cstruct, bigarray-compat }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
minimumOCamlVersion = "4.03";
|
|
|
|
pname = "eqaf";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "0.8";
|
2020-11-30 08:33:03 +00:00
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/eqaf/releases/download/v${version}/eqaf-v${version}.tbz";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-EUWhYBB0N9eUPgLkht9r0jPTk37BpZfX+jntuUcc+HU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cstruct bigarray-compat ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Constant time equal function to avoid timing attacks in OCaml";
|
|
|
|
homepage = "https://github.com/mirage/eqaf";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|