diff --git a/pkgs/by-name/im/imapsync/package.nix b/pkgs/by-name/im/imapsync/package.nix index 580650d4856f..fb90b09245f1 100644 --- a/pkgs/by-name/im/imapsync/package.nix +++ b/pkgs/by-name/im/imapsync/package.nix @@ -5,24 +5,27 @@ perl, perlPackages, stdenv, + procps, }: stdenv.mkDerivation (finalAttrs: { pname = "imapsync"; - version = "2.290"; + version = "2.314"; src = fetchurl { url = "https://imapsync.lamiral.info/dist/old_releases/${finalAttrs.version}/imapsync-${finalAttrs.version}.tgz"; - hash = "sha256-uFhTxnaUDP793isfpF/7T8d4AnXDL4uN6zU8igY+EFE="; + hash = "sha256-NOFxXGWEiJ/zvZwKzC+rJURGKCvtqQyOWnGoOzpZ28o="; }; postPatch = '' sed -i -e s@/usr@$out@ Makefile - substituteInPlace INSTALL.d/prerequisites_imapsync --replace "PAR::Packer" "" + substituteInPlace INSTALL.d/prerequisites_imapsync --replace-fail "PAR::Packer" "" ''; postInstall = '' - wrapProgram $out/bin/imapsync --set PERL5LIB $PERL5LIB + wrapProgram $out/bin/imapsync \ + --set PERL5LIB $PERL5LIB \ + --prefix PATH : ${lib.makeBinPath [ procps ]} ''; nativeBuildInputs = [ makeWrapper ]; @@ -33,9 +36,12 @@ stdenv.mkDerivation (finalAttrs: { CryptOpenSSLRSA DataUniqid DistCheckConflicts + EmailAddress EncodeIMAPUTF7 FileCopyRecursive FileTail + HTTPDaemon + HTTPDaemonSSL IOSocketINET6 IOTee JSONWebToken @@ -43,8 +49,9 @@ stdenv.mkDerivation (finalAttrs: { MailIMAPClient ModuleImplementation ModuleScanDeps - NetServer NTLM + NetDNS + NetServer PackageStash PackageStashXS ProcProcessTable @@ -64,13 +71,13 @@ stdenv.mkDerivation (finalAttrs: { meta = { description = "Mail folder synchronizer between IMAP servers"; - mainProgram = "imapsync"; - homepage = "https://imapsync.lamiral.info/"; + homepage = "https://imapsync.lamiral.info"; license = lib.licenses.nlpl; maintainers = with lib.maintainers; [ pSub motiejus ]; platforms = lib.platforms.unix; + mainProgram = "imapsync"; }; }) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 1791abfe97d8..dafe08eda5f4 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -16623,6 +16623,52 @@ with self; }; }; + HTTPDaemonSSL = buildPerlPackage { + pname = "HTTP-Daemon-SSL"; + version = "1.05-01-5"; + src = fetchurl { + url = "https://salsa.debian.org/perl-team/modules/packages/libhttp-daemon-ssl-perl/-/archive/debian/1.05-01-5/libhttp-daemon-ssl-perl-debian-1.05-01-5.tar.gz"; + hash = "sha256-2J4W3SAPgktQ8N+CTSm9fddaUlfzq074sj14fe5zHVc="; + }; + patches = [ + # Several Debian patches to fix test suite + # https://sources.debian.org/patches/libhttp-daemon-ssl-perl/1.05-01-5/ + (fetchpatch2 { + name = "testmodule.diff"; + url = "https://sources.debian.org/data/main/libh/libhttp-daemon-ssl-perl/1.05-01-5/debian/patches/testmodule.diff"; + hash = "sha256-pVPtQLlMYr7Bm8QprJbCyfY+6SyZ/v7uuqvX3k/GnGs="; + }) + (fetchpatch2 { + name = "testpost.diff"; + url = "https://sources.debian.org/data/main/libh/libhttp-daemon-ssl-perl/1.05-01-5/debian/patches/testpost.diff"; + hash = "sha256-clI4u2uYGPow8k3YjnjQFam5IK/xlW8SsJvJ/pwMm4o="; + }) + (fetchpatch2 { + name = "IO-Socket-SSL_2.078.patch"; + url = "https://sources.debian.org/data/main/libh/libhttp-daemon-ssl-perl/1.05-01-5/debian/patches/IO-Socket-SSL_2.078.patch"; + hash = "sha256-EoZPj7mlDm+KKAuXTdIhlyWAFjG9H8tqeZj42ZwV4no="; + }) + (fetchpatch2 { + name = "IO-Socket-SSL_2.079.patch"; + url = "https://sources.debian.org/data/main/libh/libhttp-daemon-ssl-perl/1.05-01-5/debian/patches/IO-Socket-SSL_2.079.patch"; + hash = "sha256-xT533707i+ZCn1/qDZJU/oW8j+Sk8WWbIPulddJPb1w="; + }) + ]; + propagatedBuildInputs = [ + HTTPDaemon + IOSocketSSL + ]; + __darwinAllowLocalNetworking = true; + meta = { + description = "Simple http server class with SSL support"; + homepage = "https://github.com/aufflick/p5-http-daemon-ssl"; + license = with lib.licenses; [ + artistic1 + gpl1Plus + ]; + }; + }; + HTTPDate = buildPerlPackage { pname = "HTTP-Date"; version = "6.06";