3
0
Fork 0
forked from mirrors/nixpkgs

imapsync: 1.267 to 1.607

This commit is contained in:
Pascal Wittmann 2015-09-08 15:36:41 +02:00
parent da6af8e76f
commit f36ea29b85
2 changed files with 17 additions and 13 deletions

View file

@ -1,24 +1,30 @@
{stdenv, fetchurl, perl, openssl, MailIMAPClient}:
{stdenv, makeWrapper, fetchurl, perl, openssl, perlPackages }:
stdenv.mkDerivation rec {
name = "imapsync-1.267";
name = "imapsync-1.607";
src = fetchurl {
url = http://www.linux-france.org/prj/imapsync/dist/imapsync-1.267.tgz;
sha256 = "0h9np2b4bdfnhn10cqkw66fki26480w0c8m3bxw0p76xkaggywdy";
url = "https://fedorahosted.org/released/imapsync/${name}.tgz";
sha256 = "0ajgzsil2fa15c3ky8cvpvfz62ymlpmr0lnwvi8ifffclv7k2hvq";
};
patchPhase = ''
sed -i -e s@/usr@$out@ Makefile
'';
postInstall = ''
# Add Mail::IMAPClient to the runtime search path.
substituteInPlace $out/bin/imapsync --replace '/bin/perl' '/bin/perl -I${MailIMAPClient}/lib/perl5/site_perl';
wrapProgram $out/bin/imapsync --set PERL5LIB $PERL5LIB
'';
buildInputs = [perl openssl MailIMAPClient];
meta = {
homepage = "http://www.linux-france.org/prj/imapsync/";
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";
license = stdenv.lib.licenses.gpl2Plus;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ pSub ];
};
}

View file

@ -1923,9 +1923,7 @@ let
imapproxy = callPackage ../tools/networking/imapproxy { };
imapsync = callPackage ../tools/networking/imapsync {
inherit (perlPackages) MailIMAPClient;
};
imapsync = callPackage ../tools/networking/imapsync { };
imgurbash = callPackage ../tools/graphics/imgurbash { };