1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 bos,
6 fpath,
7 ptime,
8 mirage-crypto,
9 x509,
10 astring,
11 logs,
12 cacert,
13 alcotest,
14 fmt,
15}:
16
17buildDunePackage rec {
18 pname = "ca-certs";
19 version = "1.0.1";
20
21 minimalOCamlVersion = "4.08";
22
23 src = fetchurl {
24 url = "https://github.com/mirage/ca-certs/releases/download/v${version}/ca-certs-${version}.tbz";
25 hash = "sha256-0818j1SLrs7yCNQlh3qBHYmOx9HZxL3qb3hlLHyDYcw=";
26 };
27
28 propagatedBuildInputs = [
29 bos
30 fpath
31 ptime
32 mirage-crypto
33 x509
34 astring
35 logs
36 ];
37
38 doCheck = true;
39 checkInputs = [
40 cacert # for /etc/ssl/certs/ca-bundle.crt
41 alcotest
42 fmt
43 ];
44
45 meta = with lib; {
46 description = "Detect root CA certificates from the operating system";
47 maintainers = [ maintainers.sternenseemann ];
48 license = licenses.isc;
49 homepage = "https://github.com/mirage/ca-certs";
50 };
51}