at v206 28 lines 800 B view raw
1{ stdenv, fetchzip, ocaml, findlib, asn1-combinators, nocrypto, ounit }: 2 3let version = "0.4.0"; in 4 5stdenv.mkDerivation { 6 name = "ocaml-x509-${version}"; 7 8 src = fetchzip { 9 url = "https://github.com/mirleft/ocaml-x509/archive/${version}.tar.gz"; 10 sha256 = "0z4c19y625ipx2anpq25pzly1fdi3cklhk130kriybrczvmd2b29"; 11 }; 12 13 buildInputs = [ ocaml findlib ounit ]; 14 propagatedBuildInputs = [ asn1-combinators nocrypto ]; 15 16 configureFlags = "--enable-tests"; 17 doCheck = true; 18 checkTarget = "test"; 19 createFindlibDestdir = true; 20 21 meta = { 22 homepage = https://github.com/mirleft/ocaml-x509; 23 description = "X509 (RFC5280) handling in OCaml"; 24 platforms = ocaml.meta.platforms; 25 license = stdenv.lib.licenses.bsd2; 26 maintainers = with stdenv.lib.maintainers; [ vbgl ]; 27 }; 28}