depot/third_party/nixpkgs/pkgs/development/ocaml-modules/ca-certs-nss/default.nix

49 lines
894 B
Nix

{
lib,
buildDunePackage,
fetchurl,
digestif,
mirage-ptime,
x509,
logs,
fmt,
bos,
cmdliner,
alcotest,
}:
buildDunePackage rec {
pname = "ca-certs-nss";
version = "3.113.1";
minimalOCamlVersion = "4.13";
src = fetchurl {
url = "https://github.com/mirage/ca-certs-nss/releases/download/v${version}/ca-certs-nss-${version}.tbz";
hash = "sha256-N70Gl7o5ac5grGKZhk8TQymIo/2TNWmh5MISwOikKg8=";
};
propagatedBuildInputs = [
mirage-ptime
x509
digestif
];
buildInputs = [
logs
fmt
bos
cmdliner
];
doCheck = true;
checkInputs = [ alcotest ];
meta = with lib; {
description = "X.509 trust anchors extracted from Mozilla's NSS";
homepage = "https://github.com/mirage/ca-certs-nss";
license = licenses.isc;
maintainers = [ maintainers.sternenseemann ];
mainProgram = "extract-from-certdata";
};
}