2022-09-09 19:27:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, perl
|
|
|
|
, perlPackages
|
|
|
|
, stdenv
|
|
|
|
}:
|
2009-06-15 18:37:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-01 20:48:53 +00:00
|
|
|
pname = "imapsync";
|
2022-10-26 17:55:23 +00:00
|
|
|
version = "2.229";
|
2021-08-01 20:48:53 +00:00
|
|
|
|
2022-09-09 19:27:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "imapsync";
|
|
|
|
repo = "imapsync";
|
|
|
|
rev = "imapsync-${version}";
|
2022-10-26 17:55:23 +00:00
|
|
|
sha256 = "sha256-nlNePOV3Y0atEPSRByRo3dHj/WjIaefEDeWdMKTo4gc=";
|
2009-06-15 18:37:42 +00:00
|
|
|
};
|
2015-09-08 13:36:41 +00:00
|
|
|
|
2022-09-09 19:27:13 +00:00
|
|
|
postPatch = ''
|
2009-06-15 18:37:42 +00:00
|
|
|
sed -i -e s@/usr@$out@ Makefile
|
2022-09-09 19:27:13 +00:00
|
|
|
substituteInPlace INSTALL.d/prerequisites_imapsync --replace "PAR::Packer" ""
|
2009-06-15 18:37:42 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2015-09-08 13:36:41 +00:00
|
|
|
wrapProgram $out/bin/imapsync --set PERL5LIB $PERL5LIB
|
2009-06-15 18:37:42 +00:00
|
|
|
'';
|
|
|
|
|
2015-09-08 13:36:41 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2022-09-09 19:27:13 +00:00
|
|
|
buildInputs = with perlPackages; [
|
|
|
|
Appcpanminus
|
|
|
|
CGI
|
|
|
|
CryptOpenSSLRSA
|
|
|
|
DataUniqid
|
|
|
|
DistCheckConflicts
|
|
|
|
EncodeIMAPUTF7
|
|
|
|
FileCopyRecursive
|
|
|
|
FileTail
|
2022-05-17 11:39:45 +00:00
|
|
|
IOSocketINET6
|
2022-09-09 19:27:13 +00:00
|
|
|
IOTee
|
|
|
|
JSONWebToken
|
|
|
|
LWP
|
|
|
|
MailIMAPClient
|
|
|
|
ModuleImplementation
|
|
|
|
ModuleScanDeps
|
|
|
|
NTLM
|
|
|
|
PackageStash
|
|
|
|
PackageStashXS
|
2022-10-26 17:55:23 +00:00
|
|
|
ProcProcessTable
|
2022-09-09 19:27:13 +00:00
|
|
|
Readonly
|
|
|
|
RegexpCommon
|
|
|
|
SysMemInfo
|
|
|
|
TermReadKey
|
|
|
|
TestDeep
|
|
|
|
TestFatal
|
|
|
|
TestMockGuard
|
|
|
|
TestMockObject
|
|
|
|
TestPod
|
|
|
|
TestRequires
|
|
|
|
UnicodeString
|
|
|
|
perl
|
2016-03-26 17:55:16 +00:00
|
|
|
];
|
2015-09-08 13:36:41 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2009-06-15 18:37:42 +00:00
|
|
|
description = "Mail folder synchronizer between IMAP servers";
|
2022-09-09 19:27:13 +00:00
|
|
|
homepage = "https://imapsync.lamiral.info/";
|
2023-01-24 10:24:20 +00:00
|
|
|
license = licenses.nlpl;
|
2015-09-08 13:36:41 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2022-09-09 19:27:13 +00:00
|
|
|
platforms = platforms.unix;
|
2009-06-15 18:37:42 +00:00
|
|
|
};
|
|
|
|
}
|