2019-08-24 07:02:26 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml
|
|
|
|
, alcotest, cstruct-unix
|
|
|
|
, asn1-combinators, domain-name, fmt, gmap, nocrypto, rresult
|
2017-11-27 19:08:40 +00:00
|
|
|
}:
|
2015-10-17 22:13:16 +00:00
|
|
|
|
2019-08-24 07:02:26 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "x509";
|
|
|
|
version = "0.7.1";
|
2015-10-17 22:13:16 +00:00
|
|
|
|
2018-01-15 04:01:50 +00:00
|
|
|
src = fetchurl {
|
2019-08-24 07:02:26 +00:00
|
|
|
url = "https://github.com/mirleft/ocaml-x509/releases/download/v${version}/x509-v${version}.tbz";
|
|
|
|
sha256 = "0hnklgdm1fwwqi0nfvpdbp7ddqvrh9h8697mr99bxqdfhg6sxh1w";
|
2015-10-17 22:13:16 +00:00
|
|
|
};
|
|
|
|
|
2019-08-24 07:02:26 +00:00
|
|
|
buildInputs = lib.optionals doCheck [ alcotest cstruct-unix ];
|
|
|
|
propagatedBuildInputs = [ asn1-combinators domain-name fmt gmap nocrypto rresult ];
|
2015-10-17 22:13:16 +00:00
|
|
|
|
2019-08-24 07:02:26 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.06";
|
2016-11-03 00:15:35 +00:00
|
|
|
|
2019-08-24 07:02:26 +00:00
|
|
|
meta = with lib; {
|
2015-10-17 22:13:16 +00:00
|
|
|
homepage = https://github.com/mirleft/ocaml-x509;
|
|
|
|
description = "X509 (RFC5280) handling in OCaml";
|
2016-11-03 00:15:35 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2015-10-17 22:13:16 +00:00
|
|
|
};
|
|
|
|
}
|