2020-05-21 00:57:24 +02:00
|
|
|
{ lib, fetchurl, buildDunePackage, ounit, cstruct, dune-configurator, 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";
|
2020-05-21 00:57:24 +02:00
|
|
|
version = "0.7.0";
|
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";
|
2020-05-21 00:57:24 +02:00
|
|
|
sha256 = "0k7kllv3bh192yj6p9dk2z81r56w7x2kyr46pxygb5gnhqqxcncf";
|
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 ];
|
|
|
|
propagatedBuildInputs = [ cstruct ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|