[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49867] [PATCH 24/29] gnu: Add ocaml-ca-certs.
From: |
pukkamustard |
Subject: |
[bug#49867] [PATCH 24/29] gnu: Add ocaml-ca-certs. |
Date: |
Wed, 4 Aug 2021 07:15:40 +0000 |
* gnu/packages/ocaml.scm (ocaml-ca-certs): New variable.
---
gnu/packages/ocaml.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 3ce07057f5..e832adc069 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7772,6 +7772,44 @@ which is also implemented by this library - namely PKCS
1, PKCS 5, PKCS 7,
PKCS 8, PKCS 9, PKCS 10, and PKCS 12.")
(license license:bsd-2)))
+(define-public ocaml-ca-certs
+ (package
+ (name "ocaml-ca-certs")
+ (version "0.2.1")
+ (home-page "https://github.com/mirage/ca-certs")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0qkxdrqyah24fz80hwkycdj50nybfjfz9b04qscv01r2ifb0kqy5"))))
+ (build-system dune-build-system)
+ (arguments `(#:test-target "."
+ ;; Tests are failing as they require certificates to be in
/etc/ssl/certs
+ #:tests? #f))
+ (propagated-inputs
+ `(("ocaml-astring" ,ocaml-astring)
+ ("ocaml-bos" ,ocaml-bos)
+ ("ocaml-fpath" ,ocaml-fpath)
+ ("ocaml-rresult" ,ocaml-rresult)
+ ("ocaml-ptime" ,ocaml-ptime)
+ ("ocaml-logs" ,ocaml-logs)
+ ("ocaml-mirage-crypto" ,ocaml-mirage-crypto)
+ ("ocaml-x509" ,ocaml-x509)))
+ (native-inputs
+ `(("ocaml-alcotest" ,ocaml-alcotest)))
+ (synopsis
+ "Detect root CA certificates from the operating system")
+ (description
+ "TLS requires a set of root anchors (Certificate Authorities) to
+authenticate servers. This library exposes this list so that it can be
+registered with ocaml-tls.")
+ (license license:isc)))
+
(define-public js-of-ocaml
(package
(name "js-of-ocaml")
--
2.32.0
[bug#49867] [PATCH 27/29] gnu: Add ocaml-conduit-lwt-unix., pukkamustard, 2021/08/04
[bug#49867] [PATCH 24/29] gnu: Add ocaml-ca-certs.,
pukkamustard <=
[bug#49867] [PATCH 20/29] gnu: Add ocaml-gmap., pukkamustard, 2021/08/04
[bug#49867] [PATCH 23/29] gnu: Add ocaml-x509., pukkamustard, 2021/08/04
[bug#49867] [PATCH 26/29] gnu: Add ocaml-lwt-ssl., pukkamustard, 2021/08/04
[bug#49867] [PATCH 29/29] gnu: Add ocaml-cohttp-lwt-unix, pukkamustard, 2021/08/04