lol
1{lib, stdenv, makeWrapper, fetchurl, perl, openssl, perlPackages }:
2
3stdenv.mkDerivation rec {
4 pname = "imapsync";
5 version = "1.727";
6
7 src = fetchurl {
8 url = "https://releases.pagure.org/imapsync/imapsync-${version}.tgz";
9 sha256 = "1axacjw2wyaphczfw3kfmi5cl83fyr8nb207nks40fxkbs8q5dlr";
10 };
11
12 patchPhase = ''
13 sed -i -e s@/usr@$out@ Makefile
14 '';
15
16 postInstall = ''
17 wrapProgram $out/bin/imapsync --set PERL5LIB $PERL5LIB
18 '';
19
20 nativeBuildInputs = [ makeWrapper ];
21
22 buildInputs = with perlPackages; [ perl openssl MailIMAPClient TermReadKey
23 IOSocketSSL DigestHMAC URI FileCopyRecursive IOTee UnicodeString
24 DataUniqid JSONWebToken TestMockGuard LWP CryptOpenSSLRSA
25 LWPProtocolHttps Readonly TestPod TestMockObject ParseRecDescent
26 IOSocketInet6 NTLM
27 ];
28
29 meta = with lib; {
30 homepage = "http://www.linux-france.org/prj/imapsync/";
31 description = "Mail folder synchronizer between IMAP servers";
32 license = licenses.gpl2Plus;
33 platforms = platforms.linux;
34 maintainers = with maintainers; [ pSub ];
35 };
36}