imapsync: 1.267 to 1.607

Changed files
+17 -13
pkgs
tools
networking
imapsync
top-level
+16 -10
pkgs/tools/networking/imapsync/default.nix
···
-
{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 ];
};
}
+1 -3
pkgs/top-level/all-packages.nix
···
imapproxy = callPackage ../tools/networking/imapproxy { };
-
imapsync = callPackage ../tools/networking/imapsync {
-
inherit (perlPackages) MailIMAPClient;
-
};
+
imapsync = callPackage ../tools/networking/imapsync { };
imgurbash = callPackage ../tools/graphics/imgurbash { };