nixpkgs/pkgs/tools/networking/imapsync/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

73 lines
1.4 KiB
Nix
Raw Normal View History

2022-09-09 19:27:13 +00:00
{ lib
, fetchFromGitHub
, makeWrapper
, perl
, perlPackages
, stdenv
}:
stdenv.mkDerivation rec {
pname = "imapsync";
2022-10-26 17:55:23 +00:00
version = "2.229";
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=";
};
2015-09-08 13:36:41 +00:00
2022-09-09 19:27:13 +00:00
postPatch = ''
sed -i -e s@/usr@$out@ Makefile
2022-09-09 19:27:13 +00:00
substituteInPlace INSTALL.d/prerequisites_imapsync --replace "PAR::Packer" ""
'';
postInstall = ''
2015-09-08 13:36:41 +00:00
wrapProgram $out/bin/imapsync --set PERL5LIB $PERL5LIB
'';
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
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
meta = with lib; {
description = "Mail folder synchronizer between IMAP servers";
2022-09-09 19:27:13 +00:00
homepage = "https://imapsync.lamiral.info/";
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;
};
}