nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 49 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 pkgs, 5}: 6 7stdenv.mkDerivation { 8 pname = "fetchmail"; 9 version = "unstable-2022-05-26"; 10 11 src = pkgs.fetchFromGitLab { 12 owner = "fetchmail"; 13 repo = "fetchmail"; 14 rev = "30b368fb8660d8fec08be1cdf2606c160b4bcb80"; 15 hash = "sha256-83D2YlFCODK2YD+oLICdim2NtNkkJU67S3YLi8Q6ga8="; 16 }; 17 18 buildInputs = with pkgs; [ 19 openssl 20 python3 21 ]; 22 nativeBuildInputs = with pkgs; [ 23 autoreconfHook 24 pkg-config 25 bison 26 flex 27 ]; 28 29 configureFlags = [ "--with-ssl=${pkgs.openssl.dev}" ]; 30 31 postInstall = '' 32 cp -a contrib/. $out/share/fetchmail-contrib 33 ''; 34 35 meta = with lib; { 36 homepage = "https://www.fetchmail.info/"; 37 description = "Full-featured remote-mail retrieval and forwarding utility"; 38 longDescription = '' 39 A full-featured, robust, well-documented remote-mail retrieval and 40 forwarding utility intended to be used over on-demand TCP/IP links 41 (such as SLIP or PPP connections). It supports every remote-mail 42 protocol now in use on the Internet: POP2, POP3, RPOP, APOP, KPOP, 43 all flavors of IMAP, ETRN, and ODMR. It can even support IPv6 and 44 IPSEC. 45 ''; 46 platforms = platforms.unix; 47 license = licenses.gpl2Plus; 48 }; 49}