1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/tools/networking/offlineimap/default.nix

39 lines
1.2 KiB
Nix
Raw Normal View History

2017-02-14 18:36:02 +00:00
{ stdenv, fetchFromGitHub, pythonPackages,
asciidoc, libxml2, libxslt, docbook_xml_xslt }:
2016-07-23 17:59:01 +01:00
pythonPackages.buildPythonApplication rec {
2018-01-27 11:36:16 +00:00
version = "7.1.5";
name = "offlineimap-${version}";
namePrefix = "";
2016-01-02 16:58:36 +00:00
src = fetchFromGitHub {
owner = "OfflineIMAP";
repo = "offlineimap";
rev = "v${version}";
2018-01-27 11:36:16 +00:00
sha256 = "0qm5vhzm8hkab2zs2l8ffg754wkws2nyd4pwb332v3zckf11flzd";
};
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;
2017-02-14 18:36:02 +00:00
nativeBuildInputs = [ asciidoc libxml2 libxslt docbook_xml_xslt ];
2017-09-04 20:55:24 +01:00
propagatedBuildInputs = [ pythonPackages.six pythonPackages.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 ];
};
}