Files
nixpkgs/pkgs/development/ocaml-modules/ca-certs/default.nix
2026-05-12 09:05:42 +02:00

50 lines
886 B
Nix

{
lib,
buildDunePackage,
fetchurl,
bos,
fpath,
ptime,
mirage-crypto,
x509,
astring,
logs,
cacert,
alcotest,
fmt,
}:
buildDunePackage (finalAttrs: {
pname = "ca-certs";
version = "1.0.3";
src = fetchurl {
url = "https://github.com/mirage/ca-certs/releases/download/v${finalAttrs.version}/ca-certs-${finalAttrs.version}.tbz";
hash = "sha256-At/J53cLGCGN8uJRGScR3UTFhYrSRXVpOxRas9fUHCk=";
};
propagatedBuildInputs = [
bos
fpath
ptime
mirage-crypto
x509
astring
logs
];
doCheck = true;
checkInputs = [
cacert # for /etc/ssl/certs/ca-bundle.crt
alcotest
fmt
];
meta = {
description = "Detect root CA certificates from the operating system";
maintainers = [ lib.maintainers.sternenseemann ];
license = lib.licenses.isc;
homepage = "https://github.com/mirage/ca-certs";
};
})