1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs/development/ocaml-modules/x509/default.nix

33 lines
917 B
Nix
Raw Normal View History

{stdenv, buildOcaml, fetchFromGitHub, ocaml, findlib, asn1-combinators, nocrypto, ounit, ocaml_oasis, ppx_sexp_conv}:
buildOcaml rec {
name = "x509";
version = "0.5.3";
mininimumSupportedOcamlVersion = "4.02";
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 ];
};
}