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