2015-09-08 13:36:41 +00:00
|
|
|
{stdenv, makeWrapper, fetchurl, perl, openssl, perlPackages }:
|
2009-06-15 18:37:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-05-29 10:19:29 +00:00
|
|
|
name = "imapsync-1.727";
|
2009-06-15 18:37:42 +00:00
|
|
|
src = fetchurl {
|
2017-05-29 10:19:29 +00:00
|
|
|
url = "https://releases.pagure.org/imapsync/${name}.tgz";
|
|
|
|
sha256 = "1axacjw2wyaphczfw3kfmi5cl83fyr8nb207nks40fxkbs8q5dlr";
|
2009-06-15 18:37:42 +00:00
|
|
|
};
|
2015-09-08 13:36:41 +00:00
|
|
|
|
2009-06-15 18:37:42 +00:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e s@/usr@$out@ Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2015-09-08 13:36:41 +00:00
|
|
|
wrapProgram $out/bin/imapsync --set PERL5LIB $PERL5LIB
|
2009-06-15 18:37:42 +00:00
|
|
|
'';
|
|
|
|
|
2015-09-08 13:36:41 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs = with perlPackages; [ perl openssl MailIMAPClient TermReadKey
|
2016-03-26 17:55:16 +00:00
|
|
|
IOSocketSSL DigestHMAC URI FileCopyRecursive IOTee UnicodeString
|
|
|
|
DataUniqid JSONWebToken TestMockGuard LWP CryptOpenSSLRSA
|
2017-05-29 10:19:29 +00:00
|
|
|
LWPProtocolHttps Readonly TestPod TestMockObject ParseRecDescent
|
|
|
|
IOSocketInet6 NTLM
|
2016-03-26 17:55:16 +00:00
|
|
|
];
|
2015-09-08 13:36:41 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.linux-france.org/prj/imapsync/;
|
2009-06-15 18:37:42 +00:00
|
|
|
description = "Mail folder synchronizer between IMAP servers";
|
2015-09-08 13:36:41 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2009-06-15 18:37:42 +00:00
|
|
|
};
|
|
|
|
}
|