2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, perl
|
|
|
|
, perlPackages
|
|
|
|
, stdenv
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "imapsync";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "2.229";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "imapsync";
|
|
|
|
repo = "imapsync";
|
|
|
|
rev = "imapsync-${version}";
|
|
|
|
sha256 = "sha256-nlNePOV3Y0atEPSRByRo3dHj/WjIaefEDeWdMKTo4gc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
sed -i -e s@/usr@$out@ Makefile
|
2022-10-30 15:09:59 +00:00
|
|
|
substituteInPlace INSTALL.d/prerequisites_imapsync --replace "PAR::Packer" ""
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/imapsync --set PERL5LIB $PERL5LIB
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildInputs = with perlPackages; [
|
|
|
|
Appcpanminus
|
|
|
|
CGI
|
|
|
|
CryptOpenSSLRSA
|
|
|
|
DataUniqid
|
|
|
|
DistCheckConflicts
|
|
|
|
EncodeIMAPUTF7
|
|
|
|
FileCopyRecursive
|
|
|
|
FileTail
|
2022-12-17 10:02:37 +00:00
|
|
|
IOSocketINET6
|
2022-10-30 15:09:59 +00:00
|
|
|
IOTee
|
|
|
|
JSONWebToken
|
|
|
|
LWP
|
|
|
|
MailIMAPClient
|
|
|
|
ModuleImplementation
|
|
|
|
ModuleScanDeps
|
|
|
|
NTLM
|
|
|
|
PackageStash
|
|
|
|
PackageStashXS
|
|
|
|
ProcProcessTable
|
|
|
|
Readonly
|
|
|
|
RegexpCommon
|
|
|
|
SysMemInfo
|
|
|
|
TermReadKey
|
|
|
|
TestDeep
|
|
|
|
TestFatal
|
|
|
|
TestMockGuard
|
|
|
|
TestMockObject
|
|
|
|
TestPod
|
|
|
|
TestRequires
|
|
|
|
UnicodeString
|
|
|
|
perl
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mail folder synchronizer between IMAP servers";
|
2022-10-30 15:09:59 +00:00
|
|
|
homepage = "https://imapsync.lamiral.info/";
|
|
|
|
license = licenses.wtfpl;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2022-10-30 15:09:59 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|