about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ca-certs
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-11-16 11:05:43 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2020-11-16 16:09:18 +0100
commitbc714f86a515a558c2f595e1a090e882d08bd7ca (patch)
tree04943f80ef8513e44fa6ca49dbccd245ff513ff9 /pkgs/development/ocaml-modules/ca-certs
parent9f9134c754f046338588e8f2316a6fd0787bcc4f (diff)
ocamlPackages.ca-certs: init at 0.1.2
Diffstat (limited to 'pkgs/development/ocaml-modules/ca-certs')
-rw-r--r--pkgs/development/ocaml-modules/ca-certs/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ca-certs/default.nix b/pkgs/development/ocaml-modules/ca-certs/default.nix
new file mode 100644
index 0000000000000..136187e9d3c41
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ca-certs/default.nix
@@ -0,0 +1,29 @@
+{ lib, buildDunePackage, fetchurl
+, bos, fpath, rresult, ptime, mirage-crypto, x509
+}:
+
+buildDunePackage rec {
+  pname = "ca-certs";
+  version = "0.1.2";
+
+  minimumOCamlVersion = "4.07";
+
+  src = fetchurl {
+    url = "https://github.com/mirage/ca-certs/releases/download/v${version}/ca-certs-v${version}.tbz";
+    sha256 = "10bbqbrsqcmslz56zc5407knalh3kqypbm7lblnzzbidbapa9wpz";
+  };
+
+  useDune2 = true;
+
+  propagatedBuildInputs = [ bos fpath rresult ptime mirage-crypto x509 ];
+
+  # tests need access to network and systemwide ca cert chain
+  doCheck = false;
+
+  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";
+  };
+}