nixpkgs/pkgs/tools/networking/offlineimap/default.nix

41 lines
1.4 KiB
Nix
Raw Normal View History

2018-06-03 01:18:29 +00:00
{ stdenv, fetchFromGitHub, python2Packages,
asciidoc, cacert, libxml2, libxslt, docbook_xsl }:
2018-06-03 01:18:29 +00:00
python2Packages.buildPythonApplication rec {
2019-09-21 09:33:34 +00:00
version = "7.3.0";
2018-06-03 01:18:29 +00:00
pname = "offlineimap";
2016-01-02 16:58:36 +00:00
src = fetchFromGitHub {
owner = "OfflineIMAP";
repo = "offlineimap";
rev = "v${version}";
2019-09-21 09:33:34 +00:00
sha256 = "0v32s09zgi3jg2grwh1xzzgzpw333b9qflai7zh2hv3fx9xnfbyj";
};
2017-02-14 18:36:02 +00: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 |"
# 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 18:36:02 +00:00
'';
doCheck = false;
nativeBuildInputs = [ asciidoc libxml2 libxslt docbook_xsl ];
propagatedBuildInputs = with python2Packages; [ six kerberos rfc6555 pysocks ];
2017-02-14 18:36:02 +00: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
'';
meta = {
description = "Synchronize emails between two repositories, so that you can read the same mailbox from multiple computers";
homepage = http://offlineimap.org;
license = stdenv.lib.licenses.gpl2Plus;
2019-10-20 09:22:52 +00:00
maintainers = with stdenv.lib.maintainers; [ endocrimes ma27 ];
};
}