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


                         
                                   
                                                                   
    



                                            
 
                                      
 
          
                                                      
                                           


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

stdenv.mkDerivation (finalAttrs: {
  pname = "imapfilter";
  version = "2.8.1";

  src = fetchFromGitHub {
    owner = "lefcha";
    repo = "imapfilter";
    rev = "v${finalAttrs.version}";
    sha256 = "sha256-nHKZ3skRbDhKWocaw5mbaRnZC37FxFIVd08iFgrEA0s=";
  };
  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 ];
  };
})