3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/maddy/default.nix
alex 4ec3a29566
maddy: remove maintainer (#138508)
* maddy: remove maintainer

* Update pkgs/servers/maddy/default.nix

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-09-19 18:02:04 +08:00

39 lines
1.1 KiB
Nix

{ lib, buildGoModule, fetchFromGitHub, coreutils }:
buildGoModule rec {
pname = "maddy";
version = "0.5.0";
src = fetchFromGitHub {
owner = "foxcpp";
repo = "maddy";
rev = "v${version}";
sha256 = "sha256-SxJfuNZBtwaILF4zD4hrTANc/GlOG53XVwg3NvKYAkg=";
};
vendorSha256 = "sha256-bxKEQaOubjRfLX+dMxVDzLOUInHykUdy9X8wvFE6Va4=";
ldflags = [ "-s" "-w" "-X github.com/foxcpp/maddy.Version=${version}" ];
subPackages = [ "cmd/maddy" "cmd/maddyctl" ];
postInstall = ''
mkdir -p $out/lib/systemd/system
substitute dist/systemd/maddy.service $out/lib/systemd/system/maddy.service \
--replace "/usr/bin/maddy" "$out/bin/maddy" \
--replace "/bin/kill" "${coreutils}/bin/kill"
substitute dist/systemd/maddy@.service $out/lib/systemd/system/maddy@.service \
--replace "/usr/bin/maddy" "$out/bin/maddy" \
--replace "/bin/kill" "${coreutils}/bin/kill"
'';
meta = with lib; {
description = "Composable all-in-one mail server";
homepage = "https://maddy.email";
license = licenses.gpl3Plus;
maintainers = with maintainers; [];
};
}