2020-11-19 00:13:47 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl
|
2022-03-30 09:31:56 +00:00
|
|
|
, bos, fpath, ptime, mirage-crypto, x509, astring, logs
|
|
|
|
, cacert, alcotest, fmt
|
2020-11-19 00:13:47 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ca-certs";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.2.3";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-02-02 18:25:31 +00:00
|
|
|
url = "https://github.com/mirage/ca-certs/releases/download/v${version}/ca-certs-${version}.tbz";
|
|
|
|
hash = "sha256-0tjWRX2RXvbXg974Lzvl7C9W+S4gIU9Y7dY8nC/GDpw=";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
duneVersion = "3";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
propagatedBuildInputs = [ bos fpath ptime mirage-crypto x509 astring logs ];
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
cacert # for /etc/ssl/certs/ca-bundle.crt
|
|
|
|
alcotest
|
2022-03-30 09:31:56 +00:00
|
|
|
fmt
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
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";
|
|
|
|
};
|
|
|
|
}
|