3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/imapsync/default.nix

37 lines
1 KiB
Nix
Raw Normal View History

{lib, stdenv, makeWrapper, fetchurl, perl, openssl, perlPackages }:
stdenv.mkDerivation rec {
pname = "imapsync";
version = "1.727";
src = fetchurl {
url = "https://releases.pagure.org/imapsync/imapsync-${version}.tgz";
2017-05-29 11:19:29 +01:00
sha256 = "1axacjw2wyaphczfw3kfmi5cl83fyr8nb207nks40fxkbs8q5dlr";
};
2015-09-08 14:36:41 +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
'';
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 lib; {
homepage = "http://www.linux-france.org/prj/imapsync/";
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 ];
};
}