summary refs log tree commit diff
path: root/pkgs/servers/maddy/default.nix
blob: 1a84cb98732f214692ee29f4d30605e498c95679 (plain) (blame)
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
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "maddy";
  version = "0.4.4";

  src = fetchFromGitHub {
    owner = "foxcpp";
    repo = "maddy";
    rev = "v${version}";
    sha256 = "sha256-IhVEb6tjfbWqhQdw1UYxy4I8my2L+eSOCd/BEz0qis0=";
  };

  vendorSha256 = "sha256-FrKWlZ3pQB+oo+rfHA8AgGRAr7YRUcb064bZGTDSKkk=";

  buildFlagsArray = [ "-ldflags=-s -w -X github.com/foxcpp/maddy.Version=${version}" ];

  subPackages = [ "cmd/maddy" "cmd/maddyctl" ];

  meta = with lib; {
    description = "Composable all-in-one mail server";
    homepage = "https://foxcpp.dev/maddy";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ lxea ];
  };
}