2020-11-19 00:13:47 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl
|
2020-11-21 19:51:51 +00:00
|
|
|
, bos, fpath, rresult, ptime, mirage-crypto, x509, astring, logs
|
2021-05-20 23:08:51 +00:00
|
|
|
, cacert, alcotest
|
2020-11-19 00:13:47 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ca-certs";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "0.2.1";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ca-certs/releases/download/v${version}/ca-certs-v${version}.tbz";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "d43109496a5129feff967d557c556af96f8b10456896a405c43b7cf0c35d0af3";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
2020-11-21 19:51:51 +00:00
|
|
|
propagatedBuildInputs = [ bos fpath rresult ptime mirage-crypto x509 astring logs ];
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [
|
|
|
|
cacert # for /etc/ssl/certs/ca-bundle.crt
|
|
|
|
alcotest
|
|
|
|
];
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Detect root CA certificates from the operating system";
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
license = licenses.isc;
|
|
|
|
homepage = "https://github.com/mirage/ca-certs";
|
|
|
|
};
|
|
|
|
}
|