nixpkgs/pkgs/development/ocaml-modules/x509/default.nix

29 lines
806 B
Nix

{ stdenv, fetchzip, ocaml, findlib, asn1-combinators, nocrypto, ounit }:
let version = "0.5.0"; in
stdenv.mkDerivation {
name = "ocaml-x509-${version}";
src = fetchzip {
url = "https://github.com/mirleft/ocaml-x509/archive/${version}.tar.gz";
sha256 = "0i9618ph4i2yk5dvvhiqhm7wf3qmd6b795mxwff8jf856gb2gdyn";
};
buildInputs = [ ocaml findlib ounit ];
propagatedBuildInputs = [ asn1-combinators nocrypto ];
configureFlags = "--enable-tests";
doCheck = true;
checkTarget = "test";
createFindlibDestdir = true;
meta = {
homepage = https://github.com/mirleft/ocaml-x509;
description = "X509 (RFC5280) handling in OCaml";
platforms = ocaml.meta.platforms or [];
license = stdenv.lib.licenses.bsd2;
maintainers = with stdenv.lib.maintainers; [ vbgl ];
};
}