550136f516
* ocamlPackages.asn1-combinators: 0.1.3 -> 0.2.0 * ocamlPackages.x509: 0.5.3 -> 0.6.0 * ocamlPackages.x509: 0.6.0 -> 0.6.1 * ocamlPackages.tls: 0.7.1 -> 0.9.0 * jackline: fix build with ocaml-tls ≥ 0.9.0
33 lines
968 B
Nix
33 lines
968 B
Nix
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg
|
|
, asn1-combinators, astring, nocrypto, ppx_sexp_conv
|
|
, ounit, cstruct-unix
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml${ocaml.version}-x509-${version}";
|
|
version = "0.6.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirleft/ocaml-x509/releases/download/${version}/x509-${version}.tbz";
|
|
sha256 = "1c62mw9rnzq0rs3ihbhfs18nv4mdzwag7893hlqgji3wmaai70pk";
|
|
};
|
|
|
|
unpackCmd = "tar -xjf $curSrc";
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild topkg ppx_sexp_conv ounit cstruct-unix ];
|
|
propagatedBuildInputs = [ asn1-combinators astring nocrypto ];
|
|
|
|
buildPhase = "${topkg.run} build --tests true";
|
|
|
|
doCheck = true;
|
|
checkPhase = "${topkg.run} test";
|
|
|
|
inherit (topkg) installPhase;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/mirleft/ocaml-x509;
|
|
description = "X509 (RFC5280) handling in OCaml";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ vbgl ];
|
|
};
|
|
}
|