2020-04-13 15:44:58 +01:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2019-08-24 08:02:26 +01:00
|
|
|
, alcotest, cstruct-unix
|
2020-04-13 15:44:58 +01:00
|
|
|
, asn1-combinators, domain-name, fmt, gmap, rresult, mirage-crypto, mirage-crypto-pk
|
|
|
|
, logs, base64
|
2017-11-27 19:08:40 +00:00
|
|
|
}:
|
2015-10-17 23:13:16 +01:00
|
|
|
|
2019-08-24 08:02:26 +01:00
|
|
|
buildDunePackage rec {
|
2020-04-13 15:44:58 +01:00
|
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
|
2019-08-24 08:02:26 +01:00
|
|
|
pname = "x509";
|
2020-04-13 15:44:58 +01:00
|
|
|
version = "0.11.0";
|
2015-10-17 23:13:16 +01:00
|
|
|
|
2018-01-15 04:01:50 +00:00
|
|
|
src = fetchurl {
|
2019-08-24 08:02:26 +01:00
|
|
|
url = "https://github.com/mirleft/ocaml-x509/releases/download/v${version}/x509-v${version}.tbz";
|
2020-04-13 15:44:58 +01:00
|
|
|
sha256 = "0gcs3vpmixxxx2q4b2iphb1xw1jffya1wkp0p1xbmsfcghzrj20m";
|
2015-10-17 23:13:16 +01:00
|
|
|
};
|
|
|
|
|
2020-04-13 15:44:58 +01:00
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
buildInputs = [ alcotest cstruct-unix ];
|
|
|
|
propagatedBuildInputs = [ asn1-combinators domain-name fmt gmap mirage-crypto mirage-crypto-pk rresult logs base64 ];
|
2015-10-17 23:13:16 +01:00
|
|
|
|
2020-04-13 15:44:58 +01:00
|
|
|
doCheck = true;
|
2016-11-03 00:15:35 +00:00
|
|
|
|
2019-08-24 08:02:26 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mirleft/ocaml-x509";
|
2015-10-17 23:13:16 +01:00
|
|
|
description = "X509 (RFC5280) handling in OCaml";
|
2016-11-03 00:15:35 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2015-10-17 23:13:16 +01:00
|
|
|
};
|
|
|
|
}
|