offlineimap: provide "OS-DEFAULT" CA certificates (#53268)

This commit is contained in:
Dmitry Kalinkin 2019-01-05 11:38:10 -05:00 committed by xeji
parent 361d64de02
commit 8a7d9e6dd0

View file

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, python2Packages,
asciidoc, libxml2, libxslt, docbook_xsl }:
asciidoc, cacert, libxml2, libxslt, docbook_xsl }:
python2Packages.buildPythonApplication rec {
version = "7.2.2";
@ -15,6 +15,9 @@ python2Packages.buildPythonApplication rec {
postPatch = ''
# Skip xmllint to stop failures due to no network access
sed -i docs/Makefile -e "s|a2x -v -d |a2x -L -v -d |"
# Provide CA certificates (Used when "sslcacertfile = OS-DEFAULT" is configured")
sed -i offlineimap/utils/distro.py -e '/def get_os_sslcertfile():/a\ \ \ \ return "${cacert}/etc/ssl/certs/ca-bundle.crt"'
'';
doCheck = false;