~aasg/nixexprs

ref: 1286f4fa6d0b5c8409fd60ae92d1bb2e69a39da9 nixexprs/pkgs/tools/networking/dma/default.nix -rw-r--r-- 1.3 KiB
1286f4fa — Aluísio Augusto Silva Gonçalves Merge branch 'macos-ci' into master 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ stdenv, fetchFromGitHub, lib, flex, yacc, openssl }:

stdenv.mkDerivation rec {
  name = "dma-${version}";
  version = "0.13";

  src = fetchFromGitHub {
    owner = "corecode";
    repo = "dma";
    rev = "v${version}";
    sha256 = "01yv1bkyim8f2jbdl83p5arrh53lyjq7dlmfl72ni4amafwfssx7";
  };

  buildInputs = [ openssl ];
  nativeBuildInputs = [ yacc flex ];

  postPatch = ''
    sed -i 's/-m [[:digit:]]\{3,4\} -o root -g mail//' Makefile
  '';
  makeFlags = [ "PREFIX=$(out)" "LEX=flex" ];

  meta = with lib; {
    description = "Small mail transport agent designed for home and office use";
    longDescription = ''
      The DragonFly Mail Agent is a small Mail Transport Agent (MTA),
      designed for home and office use.  It accepts mails from locally
      installed Mail User Agents (MUA) and delivers the mails either
      locally or to a remote destination.  Remote delivery includes
      several features like TLS/SSL support and SMTP authentication.

      dma is not intended as a replacement for real, big MTAs like
      sendmail(8) or postfix(1).  Consequently, dma does not listen
      on port 25 for incoming connections.
    '';
    homepage = "https://github.com/corecode/dma";
    license = licenses.bsd3;
    platforms = with platforms; linux ++ freebsd ++ netbsd ++ openbsd;
    maintainers = with maintainers; [ AluisioASG ];
  };
}