depot/third_party/nixpkgs/pkgs/development/ocaml-modules/ca-certs-nss/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

52 lines
945 B
Nix

{ lib
, buildDunePackage
, fetchurl
, mirage-crypto
, mirage-clock
, x509
, logs
, fmt
, bos
, astring
, cmdliner
, alcotest
}:
buildDunePackage rec {
pname = "ca-certs-nss";
version = "3.74";
minimumOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/mirage/ca-certs-nss/releases/download/v${version}/ca-certs-nss-${version}.tbz";
sha256 = "c95f5b2e36a0564e6f65421e0e197d7cfe600d19eb492f8f27c4841cbe68b231";
};
useDune2 = true;
propagatedBuildInputs = [
mirage-crypto
mirage-clock
x509
];
buildInputs = [
logs
fmt
bos
astring
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";
};
}