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