2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, perl
|
2021-02-04 12:01:55 +00:00
|
|
|
, openssl, db, cyrus_sasl, zlib
|
|
|
|
, Security
|
2020-05-10 10:48:12 +00:00
|
|
|
}:
|
2011-02-07 23:07:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-05-10 10:48:12 +00:00
|
|
|
pname = "isync";
|
2021-12-03 12:58:59 +00:00
|
|
|
version = "1.4.4";
|
2011-02-07 23:07:21 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-05-10 10:48:12 +00:00
|
|
|
url = "mirror://sourceforge/isync/${pname}-${version}.tar.gz";
|
2021-12-03 12:58:59 +00:00
|
|
|
sha256 = "1zq0wwvmqsl9y71546dr0aygzn9gjjfiw19hlcq87s929y4p6ckw";
|
2011-02-07 23:07:21 +00:00
|
|
|
};
|
|
|
|
|
2022-11-07 00:07:34 +00:00
|
|
|
patches = [
|
|
|
|
# Fixes "Fatal: buffer too small" error
|
|
|
|
./0001-Increase-imap_vprintf-buffer-size.patch
|
2022-11-27 10:51:09 +00:00
|
|
|
# Fix #202595: SSL error "Socket error: ... unexpected eof while reading"
|
|
|
|
# Source: https://sourceforge.net/p/isync/isync/ci/b6c36624f04cd388873785c0631df3f2f9ac4bf0/
|
|
|
|
./work-around-unexpected-EOF-error-messages-at-end-of-SSL-connections.patch
|
2022-11-07 00:07:34 +00:00
|
|
|
];
|
|
|
|
|
2020-05-10 10:48:12 +00:00
|
|
|
nativeBuildInputs = [ pkg-config perl ];
|
2021-02-04 12:01:55 +00:00
|
|
|
buildInputs = [ openssl db cyrus_sasl zlib ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
2011-02-07 23:07:21 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://isync.sourceforge.net/";
|
2020-05-10 10:48:12 +00:00
|
|
|
# https://sourceforge.net/projects/isync/
|
|
|
|
changelog = "https://sourceforge.net/p/isync/isync/ci/v${version}/tree/NEWS";
|
2011-02-07 23:07:21 +00:00
|
|
|
description = "Free IMAP and MailDir mailbox synchronizer";
|
2020-05-10 10:48:12 +00:00
|
|
|
longDescription = ''
|
|
|
|
mbsync (formerly isync) is a command line application which synchronizes
|
|
|
|
mailboxes. Currently Maildir and IMAP4 mailboxes are supported. New
|
|
|
|
messages, message deletions and flag changes can be propagated both ways.
|
|
|
|
'';
|
2015-05-28 17:20:29 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2015-05-27 19:56:04 +00:00
|
|
|
platforms = platforms.unix;
|
2020-06-07 12:07:20 +00:00
|
|
|
maintainers = with maintainers; [ primeos lheckemann ];
|
2022-05-23 03:10:10 +00:00
|
|
|
mainProgram = "mbsync";
|
2011-02-07 23:07:21 +00:00
|
|
|
};
|
|
|
|
}
|