summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/x509/default.nix
blob: c44ccb18982a56b6e224bc767a44974113ebdffd (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
{ 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 ];
  };
}