nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, fetchurl, buildDunePackage, cstruct, bigarray-compat }:
2
3buildDunePackage rec {
4 minimumOCamlVersion = "4.03";
5 pname = "eqaf";
6 version = "0.8";
7 useDune2 = true;
8
9 src = fetchurl {
10 url = "https://github.com/mirage/eqaf/releases/download/v${version}/eqaf-v${version}.tbz";
11 sha256 = "sha256-EUWhYBB0N9eUPgLkht9r0jPTk37BpZfX+jntuUcc+HU=";
12 };
13
14 propagatedBuildInputs = [ cstruct bigarray-compat ];
15
16 meta = {
17 description = "Constant time equal function to avoid timing attacks in OCaml";
18 homepage = "https://github.com/mirage/eqaf";
19 license = lib.licenses.mit;
20 maintainers = [ lib.maintainers.vbgl ];
21 };
22
23}