1 { lib, fetchurl, buildDunePackage, ounit2, cstruct, dune-configurator, eqaf, pkg-config
2 , withFreestanding ? false
7 minimalOCamlVersion = "4.08";
9 pname = "mirage-crypto";
13 url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-${version}.tbz";
14 sha256 = "sha256-PoGKdgwjXFtoTHtrQ7HN0qfdBOAQW2gNUk+DbrmIppw=";
18 checkInputs = [ ounit2 ];
20 nativeBuildInputs = [ pkg-config ];
21 buildInputs = [ dune-configurator ];
22 propagatedBuildInputs = [
24 ] ++ lib.optionals withFreestanding [
28 strictDeps = !doCheck;
31 homepage = "https://github.com/mirage/mirage-crypto";
32 description = "Simple symmetric cryptography for the modern age";
34 licenses.isc # default license
35 licenses.bsd2 # mirage-crypto-rng-mirage
36 licenses.mit # mirage-crypto-ec
38 maintainers = with maintainers; [ sternenseemann ];