lol
1{stdenv, fetchurl, perl, openssl, MailIMAPClient}:
2
3stdenv.mkDerivation rec {
4 name = "imapsync-1.267";
5 src = fetchurl {
6 url = http://www.linux-france.org/prj/imapsync/dist/imapsync-1.267.tgz;
7 sha256 = "0h9np2b4bdfnhn10cqkw66fki26480w0c8m3bxw0p76xkaggywdy";
8 };
9 patchPhase = ''
10 sed -i -e s@/usr@$out@ Makefile
11 '';
12
13 postInstall = ''
14 # Add Mail::IMAPClient to the runtime search path.
15 substituteInPlace $out/bin/imapsync --replace '/bin/perl' '/bin/perl -I${MailIMAPClient}/lib/perl5/site_perl';
16 '';
17 buildInputs = [perl openssl MailIMAPClient];
18
19 meta = {
20 homepage = "http://www.linux-france.org/prj/imapsync/";
21 description = "Mail folder synchronizer between IMAP servers";
22 license = stdenv.lib.licenses.gpl2Plus;
23 };
24}