2022-11-04 12:27:35 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, cstruct }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
2022-11-04 12:27:35 +00:00
|
|
|
minimalOCamlVersion = "4.07";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "eqaf";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "0.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-11-04 12:27:35 +00:00
|
|
|
url = "https://github.com/mirage/eqaf/releases/download/v${version}/eqaf-${version}.tbz";
|
|
|
|
sha256 = "sha256-7A4oqUasaBf5XVhU8FqZYa46hAi7YQ55z60BubJV3+A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
propagatedBuildInputs = [ cstruct ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|