summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/x509/default.nix
blob: bca266d5fee18968afb817bf9292f20a7baf2ec9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{stdenv, buildOcaml, fetchFromGitHub, ocaml, findlib, asn1-combinators, nocrypto, ounit, ocaml_oasis, ppx_sexp_conv}:

buildOcaml rec {
  name = "x509";
  version = "0.5.3";

  src = fetchFromGitHub {
    owner  = "mirleft";
    repo   = "ocaml-x509";
    rev    = "${version}";
    sha256 = "07cc3z6h87460z3f4vz8nlczw5jkc4vjhix413z9x6nral876rn7";
  };

  buildInputs = [ ocaml ocaml_oasis findlib ounit ppx_sexp_conv ];
  propagatedBuildInputs = [ asn1-combinators nocrypto ];

  configureFlags = "--enable-tests";
  configurePhase = "./configure --prefix $out $configureFlags";

  doCheck = true;
  checkTarget = "test";
  createFindlibDestdir = true;

  meta = with stdenv.lib; {
    homepage = https://github.com/mirleft/ocaml-x509;
    description = "X509 (RFC5280) handling in OCaml";
    license = licenses.bsd2;
    maintainers = with maintainers; [ vbgl ];
  };
}