2015-09-08 14:36:41 +01:00
|
|
|
{stdenv, makeWrapper, fetchurl, perl, openssl, perlPackages }:
|
2009-06-15 19:37:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-04-30 09:09:25 +01:00
|
|
|
name = "imapsync-1.684";
|
2009-06-15 19:37:42 +01:00
|
|
|
src = fetchurl {
|
2015-09-08 14:36:41 +01:00
|
|
|
url = "https://fedorahosted.org/released/imapsync/${name}.tgz";
|
2016-04-30 09:09:25 +01:00
|
|
|
sha256 = "1ilqdaabh6xiwpjfdg2mrhygvjlxj6jdkmqjqadq5z29172hji5b";
|
2009-06-15 19:37:42 +01:00
|
|
|
};
|
2015-09-08 14:36:41 +01:00
|
|
|
|
2009-06-15 19:37:42 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e s@/usr@$out@ Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2015-09-08 14:36:41 +01:00
|
|
|
wrapProgram $out/bin/imapsync --set PERL5LIB $PERL5LIB
|
2009-06-15 19:37:42 +01:00
|
|
|
'';
|
|
|
|
|
2015-09-08 14:36:41 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs = with perlPackages; [ perl openssl MailIMAPClient TermReadKey
|
|
|
|
IOSocketSSL DigestHMAC URI FileCopyRecursive IOTee UnicodeString ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.linux-france.org/prj/imapsync/;
|
2009-06-15 19:37:42 +01:00
|
|
|
description = "Mail folder synchronizer between IMAP servers";
|
2015-09-08 14:36:41 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2009-06-15 19:37:42 +01:00
|
|
|
};
|
|
|
|
}
|