Merge pull request #195861 from wmertens/fetchmail

fetchmail: add v7 and fix fetchmailconf

authored by

Wout Mertens and committed by
GitHub
4098773f 965c7a6a

+40 -2
+2 -2
pkgs/applications/misc/fetchmail/default.nix
··· 1 - { lib, stdenv, fetchurl, openssl }: 1 + { lib, stdenv, fetchurl, openssl, python3 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "fetchmail"; ··· 9 9 sha256 = "sha256-w73e0bXOI2lgvRzu7j8yVyIO2Zw+7ISl12u1YY4yWNQ="; 10 10 }; 11 11 12 - buildInputs = [ openssl ]; 12 + buildInputs = [ openssl python3 ]; 13 13 14 14 configureFlags = [ "--with-ssl=${openssl.dev}" ]; 15 15
+37
pkgs/applications/misc/fetchmail/v7.nix
··· 1 + { lib, stdenv, pkgs }: 2 + 3 + stdenv.mkDerivation { 4 + pname = "fetchmail"; 5 + version = "unstable-2022-05-26"; 6 + 7 + src = pkgs.fetchFromGitLab { 8 + owner = "fetchmail"; 9 + repo = "fetchmail"; 10 + rev = "30b368fb8660d8fec08be1cdf2606c160b4bcb80"; 11 + sha256 = "sha256-83D2YlFCODK2YD+oLICdim2NtNkkJU67S3YLi8Q6ga8="; 12 + }; 13 + 14 + buildInputs = with pkgs; [ openssl python3 ]; 15 + nativeBuildInputs = with pkgs; [ autoreconfHook pkg-config bison flex ]; 16 + 17 + configureFlags = [ "--with-ssl=${pkgs.openssl.dev}" ]; 18 + 19 + postInstall = '' 20 + cp -a contrib/. $out/share/fetchmail-contrib 21 + ''; 22 + 23 + meta = with lib; { 24 + homepage = "https://www.fetchmail.info/"; 25 + description = "A full-featured remote-mail retrieval and forwarding utility"; 26 + longDescription = '' 27 + A full-featured, robust, well-documented remote-mail retrieval and 28 + forwarding utility intended to be used over on-demand TCP/IP links 29 + (such as SLIP or PPP connections). It supports every remote-mail 30 + protocol now in use on the Internet: POP2, POP3, RPOP, APOP, KPOP, 31 + all flavors of IMAP, ETRN, and ODMR. It can even support IPv6 and 32 + IPSEC. 33 + ''; 34 + platforms = platforms.unix; 35 + license = licenses.gpl2Plus; 36 + }; 37 + }
+1
pkgs/top-level/all-packages.nix
··· 27981 27981 fehlstart = callPackage ../applications/misc/fehlstart { }; 27982 27982 27983 27983 fetchmail = callPackage ../applications/misc/fetchmail { }; 27984 + fetchmail_7 = callPackage ../applications/misc/fetchmail/v7.nix { }; 27984 27985 27985 27986 ff2mpv = callPackage ../applications/misc/ff2mpv { }; 27986 27987