2020-07-18 16:06:22 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ounit, cstruct, dune-configurator, eqaf, pkg-config }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
2020-05-29 06:06:01 +00:00
|
|
|
minimumOCamlVersion = "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
pname = "mirage-crypto";
|
2020-10-27 00:29:36 +00:00
|
|
|
version = "0.8.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-v${version}.tbz";
|
2020-10-27 00:29:36 +00:00
|
|
|
sha256 = "1fghg89lpm1iks6nk1jhqcimpvb52jih0ys9bxbn2f343l0njbkq";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ ounit ];
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
nativeBuildInputs = [ dune-configurator pkg-config ];
|
2020-07-18 16:06:22 +00:00
|
|
|
propagatedBuildInputs = [ cstruct eqaf ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/mirage/mirage-crypto";
|
|
|
|
description = "Simple symmetric cryptography for the modern age";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|