mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 15:41:40 +00:00
6e066027f5
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/offlineimap/versions. These checks were done: - built on NixOS - ran ‘/nix/store/q1a1p40fy8bhrd28f0fdikqmv7c1vmbl-offlineimap-7.2.0/bin/.offlineimap-wrapped -h’ got 0 exit code - ran ‘/nix/store/q1a1p40fy8bhrd28f0fdikqmv7c1vmbl-offlineimap-7.2.0/bin/.offlineimap-wrapped --help’ got 0 exit code - ran ‘/nix/store/q1a1p40fy8bhrd28f0fdikqmv7c1vmbl-offlineimap-7.2.0/bin/.offlineimap-wrapped --version’ and found version 7.2.0 - ran ‘/nix/store/q1a1p40fy8bhrd28f0fdikqmv7c1vmbl-offlineimap-7.2.0/bin/offlineimap -h’ got 0 exit code - ran ‘/nix/store/q1a1p40fy8bhrd28f0fdikqmv7c1vmbl-offlineimap-7.2.0/bin/offlineimap --help’ got 0 exit code - ran ‘/nix/store/q1a1p40fy8bhrd28f0fdikqmv7c1vmbl-offlineimap-7.2.0/bin/offlineimap --version’ and found version 7.2.0 - found 7.2.0 with grep in /nix/store/q1a1p40fy8bhrd28f0fdikqmv7c1vmbl-offlineimap-7.2.0 - directory tree listing: https://gist.github.com/7a051af944742639c585d06d827dabea
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, pythonPackages,
|
|
asciidoc, libxml2, libxslt, docbook_xml_xslt }:
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
version = "7.2.0";
|
|
name = "offlineimap-${version}";
|
|
namePrefix = "";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OfflineIMAP";
|
|
repo = "offlineimap";
|
|
rev = "v${version}";
|
|
sha256 = "0xyvqgy36n0bb41c4ffldyrcnaja5gpwx2ngbnk3qs22ldb2n1sb";
|
|
};
|
|
|
|
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_xml_xslt ];
|
|
propagatedBuildInputs = [ pythonPackages.six pythonPackages.kerberos ];
|
|
|
|
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 ];
|
|
};
|
|
}
|