2020-07-06 07:46:46 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ounit, cstruct, dune-configurator, eqaf, pkg-config }:
|
2020-04-13 11:20:48 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
2020-05-20 22:57:24 +00:00
|
|
|
minimumOCamlVersion = "4.08";
|
2020-04-13 11:20:48 +00:00
|
|
|
|
|
|
|
pname = "mirage-crypto";
|
2021-01-20 23:09:03 +00:00
|
|
|
version = "0.8.10";
|
2020-04-13 11:20:48 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-v${version}.tbz";
|
2021-01-20 23:09:03 +00:00
|
|
|
sha256 = "8a5976fe7837491d2fbd1917b77524776f70ae590e9f55cf757cc8951b5481fc";
|
2020-04-13 11:20:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ ounit ];
|
|
|
|
|
2020-05-20 22:57:24 +00:00
|
|
|
nativeBuildInputs = [ dune-configurator pkg-config ];
|
2020-07-06 07:46:46 +00:00
|
|
|
propagatedBuildInputs = [ cstruct eqaf ];
|
2020-04-13 11:20:48 +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 ];
|
|
|
|
};
|
|
|
|
}
|