2021-02-05 11:14:31 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "maddy";
|
2021-04-30 23:00:12 +02:00
|
|
|
version = "0.4.4";
|
2021-02-05 11:14:31 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "foxcpp";
|
|
|
|
repo = "maddy";
|
|
|
|
rev = "v${version}";
|
2021-04-30 23:00:12 +02:00
|
|
|
sha256 = "sha256-IhVEb6tjfbWqhQdw1UYxy4I8my2L+eSOCd/BEz0qis0=";
|
2021-02-05 11:14:31 +01:00
|
|
|
};
|
|
|
|
|
2021-04-30 23:00:12 +02:00
|
|
|
vendorSha256 = "sha256-FrKWlZ3pQB+oo+rfHA8AgGRAr7YRUcb064bZGTDSKkk=";
|
2021-02-05 11:14:31 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|