My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/ocaml-modules/x509/default.nix

29 lines
806 B

{ 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 ];
};
}