2021-01-11 07:54:33 +00:00
|
|
|
{lib, stdenv, makeWrapper, fetchurl, perl, openssl, perlPackages }:
|
2009-06-15 19:37:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-01 21:48:53 +01:00
|
|
|
pname = "imapsync";
|
|
|
|
version = "1.727";
|
|
|
|
|
2009-06-15 19:37:42 +01:00
|
|
|
src = fetchurl {
|
2021-08-01 21:48:53 +01:00
|
|
|
url = "https://releases.pagure.org/imapsync/imapsync-${version}.tgz";
|
2017-05-29 11:19:29 +01:00
|
|
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|