diff options
Diffstat (limited to 'pkgs/development/ocaml-modules/x509/default.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/x509/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/x509/default.nix b/pkgs/development/ocaml-modules/x509/default.nix new file mode 100644 index 00000000000..116772e7819 --- /dev/null +++ b/pkgs/development/ocaml-modules/x509/default.nix @@ -0,0 +1,31 @@ +{ lib, fetchurl, buildDunePackage +, alcotest, cstruct-unix +, asn1-combinators, domain-name, fmt, gmap, pbkdf, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, ipaddr +, logs, base64 +}: + +buildDunePackage rec { + minimumOCamlVersion = "4.07"; + + pname = "x509"; + version = "0.15.2"; + + src = fetchurl { + url = "https://github.com/mirleft/ocaml-x509/releases/download/v${version}/x509-v${version}.tbz"; + sha256 = "4034afdd83a0cb8291b1f809403015da9139bd772813d59d6093e42ec31ba643"; + }; + + useDune2 = true; + + buildInputs = [ alcotest cstruct-unix ]; + propagatedBuildInputs = [ asn1-combinators domain-name fmt gmap mirage-crypto mirage-crypto-pk mirage-crypto-ec pbkdf logs base64 ipaddr ]; + + doCheck = true; + + meta = with lib; { + homepage = "https://github.com/mirleft/ocaml-x509"; + description = "X509 (RFC5280) handling in OCaml"; + license = licenses.bsd2; + maintainers = with maintainers; [ vbgl ]; + }; +} |