nixpkgs/pkgs/development/ocaml-modules/x509/default.nix
2026-06-24 19:39:45 +00:00

55 lines
951 B
Nix

{
lib,
fetchurl,
buildDunePackage,
alcotest,
asn1-combinators,
domain-name,
fmt,
gmap,
kdf,
mirage-crypto,
mirage-crypto-ec,
mirage-crypto-pk,
ipaddr,
logs,
base64,
ohex,
}:
buildDunePackage rec {
minimalOCamlVersion = "4.08";
pname = "x509";
version = "1.1.0";
src = fetchurl {
url = "https://github.com/mirleft/ocaml-x509/releases/download/v${version}/x509-${version}.tbz";
hash = "sha256-BYQ74iwQ9MoOzyStOasALolWD1PMIhKKw9FHReFr+n0=";
};
checkInputs = [ alcotest ];
propagatedBuildInputs = [
asn1-combinators
domain-name
fmt
gmap
mirage-crypto
mirage-crypto-pk
mirage-crypto-ec
kdf
logs
base64
ipaddr
ohex
];
doCheck = true;
meta = {
homepage = "https://github.com/mirleft/ocaml-x509";
description = "X509 (RFC5280) handling in OCaml";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ vbgl ];
};
}