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