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 {
|
2017-05-29 11:19:29 +01:00
|
|
|
name = "imapsync-1.727";
|
2009-06-15 19:37:42 +01:00
|
|
|
src = fetchurl {
|
2017-05-29 11:19:29 +01:00
|
|
|
url = "https://releases.pagure.org/imapsync/${name}.tgz";
|
|
|
|
sha256 = "1axacjw2wyaphczfw3kfmi5cl83fyr8nb207nks40fxkbs8q5dlr";
|
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
|
2016-03-26 17:55:16 +00:00
|
|
|
IOSocketSSL DigestHMAC URI FileCopyRecursive IOTee UnicodeString
|
|
|
|
DataUniqid JSONWebToken TestMockGuard LWP CryptOpenSSLRSA
|
2017-05-29 11:19:29 +01:00
|
|
|
LWPProtocolHttps Readonly TestPod TestMockObject ParseRecDescent
|
|
|
|
IOSocketInet6 NTLM
|
2016-03-26 17:55:16 +00:00
|
|
|
];
|
2015-09-08 14:36:41 +01:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|