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

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

74 lines
1.4 KiB
Nix
Raw Normal View History

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