3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/ca-certs/default.nix
sternenseemann 99050a2c31 ocamlPackages.ca-certs: disable test suite expecting nss db
nss-cacert has updated a few certificates, including Google's which
breaks the test suite of ca-certs expecting the old version.
2022-01-15 12:28:45 +01:00

35 lines
953 B
Nix

{ lib, buildDunePackage, fetchurl
, bos, fpath, rresult, ptime, mirage-crypto, x509, astring, logs
, cacert, alcotest
}:
buildDunePackage rec {
pname = "ca-certs";
version = "0.2.1";
minimumOCamlVersion = "4.07";
src = fetchurl {
url = "https://github.com/mirage/ca-certs/releases/download/v${version}/ca-certs-v${version}.tbz";
sha256 = "d43109496a5129feff967d557c556af96f8b10456896a405c43b7cf0c35d0af3";
};
useDune2 = true;
propagatedBuildInputs = [ bos fpath rresult ptime mirage-crypto x509 astring logs ];
# Assumes nss-cacert < 3.74 https://github.com/mirage/ca-certs/issues/21
doCheck = false;
checkInputs = [
cacert # for /etc/ssl/certs/ca-bundle.crt
alcotest
];
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";
};
}