1 { lib, stdenv, fetchurl, pkg-config, perl
2 , openssl, db, cyrus_sasl, zlib
6 stdenv.mkDerivation rec {
11 url = "mirror://sourceforge/isync/${pname}-${version}.tar.gz";
12 sha256 = "1zq0wwvmqsl9y71546dr0aygzn9gjjfiw19hlcq87s929y4p6ckw";
16 # Fixes "Fatal: buffer too small" error
17 ./0001-Increase-imap_vprintf-buffer-size.patch
20 nativeBuildInputs = [ pkg-config perl ];
21 buildInputs = [ openssl db cyrus_sasl zlib ]
22 ++ lib.optionals stdenv.isDarwin [ Security ];
25 homepage = "http://isync.sourceforge.net/";
26 # https://sourceforge.net/projects/isync/
27 changelog = "https://sourceforge.net/p/isync/isync/ci/v${version}/tree/NEWS";
28 description = "Free IMAP and MailDir mailbox synchronizer";
30 mbsync (formerly isync) is a command line application which synchronizes
31 mailboxes. Currently Maildir and IMAP4 mailboxes are supported. New
32 messages, message deletions and flag changes can be propagated both ways.
34 license = licenses.gpl2Plus;
35 platforms = platforms.unix;
36 maintainers = with maintainers; [ primeos lheckemann ];
37 mainProgram = "mbsync";