nixpkgs/pkgs/tools/networking/imapsync/default.nix

31 lines
887 B
Nix
Raw Normal View History

2015-09-08 15:36:41 +02:00
{stdenv, makeWrapper, fetchurl, perl, openssl, perlPackages }:
stdenv.mkDerivation rec {
2015-09-12 12:11:19 +02:00
name = "imapsync-1.644";
src = fetchurl {
2015-09-08 15:36:41 +02:00
url = "https://fedorahosted.org/released/imapsync/${name}.tgz";
2015-09-12 12:11:19 +02:00
sha256 = "1lni950qyp841277dnzb43pxpzqyfcl6sachd8j6a0j08826gfky";
};
2015-09-08 15:36:41 +02:00
patchPhase = ''
sed -i -e s@/usr@$out@ Makefile
'';
postInstall = ''
2015-09-08 15:36:41 +02:00
wrapProgram $out/bin/imapsync --set PERL5LIB $PERL5LIB
'';
2015-09-08 15:36:41 +02:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = with perlPackages; [ perl openssl MailIMAPClient TermReadKey
IOSocketSSL DigestHMAC URI FileCopyRecursive IOTee UnicodeString ];
meta = with stdenv.lib; {
homepage = http://www.linux-france.org/prj/imapsync/;
description = "Mail folder synchronizer between IMAP servers";
2015-09-08 15:36:41 +02:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ pSub ];
};
}