1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/networking/offlineimap/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

2018-06-03 02:18:29 +01:00
{ stdenv, fetchFromGitHub, python2Packages,
asciidoc, libxml2, libxslt, docbook_xsl }:
2018-06-03 02:18:29 +01:00
python2Packages.buildPythonApplication rec {
version = "7.2.1";
2018-06-03 02:18:29 +01:00
pname = "offlineimap";
2016-01-02 16:58:36 +00:00
src = fetchFromGitHub {
owner = "OfflineIMAP";
repo = "offlineimap";
rev = "v${version}";
sha256 = "1m5i74baazwazqp98ssma968rnwzfl1nywb7icf0swc8447ps97q";
};
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 |"
'';
doCheck = false;
nativeBuildInputs = [ asciidoc libxml2 libxslt docbook_xsl ];
2018-06-03 02:18:29 +01:00
propagatedBuildInputs = with python2Packages; [ six kerberos ];
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;
maintainers = [ stdenv.lib.maintainers.garbas ];
};
}