Merge pull request #20171 from sternenseemann/x509

ocaml-x509: 0.5.0 -> 0.5.3
This commit is contained in:
Tim Steinbach 2016-11-17 22:24:13 -05:00 committed by GitHub
commit 5080d17984

View File

@ -1,28 +1,30 @@
{ stdenv, fetchzip, ocaml, findlib, asn1-combinators, nocrypto, ounit }: {stdenv, buildOcaml, fetchFromGitHub, ocaml, findlib, asn1-combinators, nocrypto, ounit, ocaml_oasis, ppx_sexp_conv}:
let version = "0.5.0"; in buildOcaml rec {
name = "x509";
version = "0.5.3";
stdenv.mkDerivation { src = fetchFromGitHub {
name = "ocaml-x509-${version}"; owner = "mirleft";
repo = "ocaml-x509";
src = fetchzip { rev = "${version}";
url = "https://github.com/mirleft/ocaml-x509/archive/${version}.tar.gz"; sha256 = "07cc3z6h87460z3f4vz8nlczw5jkc4vjhix413z9x6nral876rn7";
sha256 = "0i9618ph4i2yk5dvvhiqhm7wf3qmd6b795mxwff8jf856gb2gdyn";
}; };
buildInputs = [ ocaml findlib ounit ]; buildInputs = [ ocaml ocaml_oasis findlib ounit ppx_sexp_conv ];
propagatedBuildInputs = [ asn1-combinators nocrypto ]; propagatedBuildInputs = [ asn1-combinators nocrypto ];
configureFlags = "--enable-tests"; configureFlags = "--enable-tests";
configurePhase = "./configure --prefix $out $configureFlags";
doCheck = true; doCheck = true;
checkTarget = "test"; checkTarget = "test";
createFindlibDestdir = true; createFindlibDestdir = true;
meta = { meta = with stdenv.lib; {
homepage = https://github.com/mirleft/ocaml-x509; homepage = https://github.com/mirleft/ocaml-x509;
description = "X509 (RFC5280) handling in OCaml"; description = "X509 (RFC5280) handling in OCaml";
platforms = ocaml.meta.platforms or []; license = licenses.bsd2;
license = stdenv.lib.licenses.bsd2; maintainers = with maintainers; [ vbgl ];
maintainers = with stdenv.lib.maintainers; [ vbgl ];
}; };
} }