1 { lib, fetchurl, buildDunePackage, ounit2, cstruct, dune-configurator, eqaf, pkg-config
2 , withFreestanding ? false
7 minimalOCamlVersion = "4.08";
10 pname = "mirage-crypto";
14 url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-${version}.tbz";
15 sha256 = "sha256-1rl8t/DcNEpgJRPMAxN8Hn8K4QXQchYUYmz08jHt92Q=";
19 checkInputs = [ ounit2 ];
21 nativeBuildInputs = [ pkg-config ];
22 buildInputs = [ dune-configurator ];
23 propagatedBuildInputs = [
25 ] ++ lib.optionals withFreestanding [
30 homepage = "https://github.com/mirage/mirage-crypto";
31 description = "Simple symmetric cryptography for the modern age";
33 licenses.isc # default license
34 licenses.bsd2 # mirage-crypto-rng-mirage
35 licenses.mit # mirage-crypto-ec
37 maintainers = with maintainers; [ sternenseemann ];