summary refs log blame commit diff
path: root/pkgs/applications/networking/mailreaders/imapfilter.nix
blob: bed71202c4fe6c5e14d1ec7211db0a8dda97a335 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                      

                         
                       
                    
 



                         
                                                            
    



                                            
 
                                      
 
          
                                                      
                                           


                                                       

    
{ lib, stdenv, fetchFromGitHub, openssl, lua, pcre2 }:

stdenv.mkDerivation rec {
  pname = "imapfilter";
  version = "2.7.5";

  src = fetchFromGitHub {
    owner = "lefcha";
    repo = "imapfilter";
    rev = "v${version}";
    sha256 = "nbVwbPkNbJz4GHhvOp+QVgiBqKA/HR34p4x3NXJB7ig=";
  };
  makeFlags = [
    "SSLCAFILE=/etc/ssl/certs/ca-bundle.crt"
    "PREFIX=$(out)"
  ];

  buildInputs = [ openssl pcre2 lua ];

  meta = {
    homepage = "https://github.com/lefcha/imapfilter";
    description = "Mail filtering utility";
    license = lib.licenses.mit;
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ doronbehar ];
  };
}