2018-06-02 18:18:29 -07:00
|
|
|
{ stdenv, fetchFromGitHub, python2Packages,
|
2019-01-05 08:38:10 -08:00
|
|
|
asciidoc, cacert, libxml2, libxslt, docbook_xsl }:
|
2010-04-12 14:03:22 -07:00
|
|
|
|
2018-06-02 18:18:29 -07:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2019-12-28 08:45:39 -08:00
|
|
|
version = "7.3.2";
|
2018-06-02 18:18:29 -07:00
|
|
|
pname = "offlineimap";
|
2010-04-12 14:03:22 -07:00
|
|
|
|
2016-01-02 08:58:36 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OfflineIMAP";
|
|
|
|
repo = "offlineimap";
|
|
|
|
rev = "v${version}";
|
2019-12-28 08:45:39 -08:00
|
|
|
sha256 = "0rmj1ws6hljqnfap3p3js5s46kx85yc02hjkiki5zg44wn3hswjg";
|
2010-04-12 14:03:22 -07:00
|
|
|
};
|
|
|
|
|
2017-02-14 10:36:02 -08:00
|
|
|
postPatch = ''
|
|
|
|
# Skip xmllint to stop failures due to no network access
|
|
|
|
sed -i docs/Makefile -e "s|a2x -v -d |a2x -L -v -d |"
|
2019-01-05 08:38:10 -08:00
|
|
|
|
|
|
|
# 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"'
|
2017-02-14 10:36:02 -08:00
|
|
|
'';
|
|
|
|
|
2011-01-03 08:25:11 -08:00
|
|
|
doCheck = false;
|
2010-04-12 14:03:22 -07:00
|
|
|
|
2018-07-17 13:11:16 -07:00
|
|
|
nativeBuildInputs = [ asciidoc libxml2 libxslt docbook_xsl ];
|
2019-12-26 03:30:57 -08:00
|
|
|
propagatedBuildInputs = with python2Packages; [ six kerberos rfc6555 pysocks ];
|
2013-04-12 04:13:32 -07:00
|
|
|
|
2017-02-14 10:36:02 -08:00
|
|
|
postInstall = ''
|
|
|
|
make -C docs man
|
|
|
|
install -D -m 644 docs/offlineimap.1 ''${!outputMan}/share/man/man1/offlineimap.1
|
|
|
|
install -D -m 644 docs/offlineimapui.7 ''${!outputMan}/share/man/man7/offlineimapui.7
|
|
|
|
'';
|
|
|
|
|
2010-04-12 14:03:22 -07:00
|
|
|
meta = {
|
2013-10-06 02:49:53 -07:00
|
|
|
description = "Synchronize emails between two repositories, so that you can read the same mailbox from multiple computers";
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = http://offlineimap.org;
|
2016-01-02 09:15:48 -08:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2019-12-26 06:13:48 -08:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ endocrimes ];
|
2010-04-12 14:03:22 -07:00
|
|
|
};
|
|
|
|
}
|