nixpkgs/pkgs/servers/mail/mox/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
735 B
Nix
Raw Normal View History

2023-05-06 21:49:08 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "mox";
2024-03-10 01:18:23 +00:00
version = "0.0.10";
2023-05-06 21:49:08 +00:00
src = fetchFromGitHub {
owner = "mjl-";
repo = "mox";
rev = "v${version}";
2024-03-10 01:18:23 +00:00
hash = "sha256-BigxFlMkagw82Lkz1xMMSwAJyfSdSbeQr6G6rCaomNg=";
2023-05-06 21:49:08 +00:00
};
# set the version during buildtime
patches = [ ./version.patch ];
vendorHash = null;
ldflags = [
"-s"
"-w"
"-X github.com/mjl-/mox/moxvar.Version=${version}"
];
meta = {
description = "Modern full-featured open source secure mail server for low-maintenance self-hosted email";
mainProgram = "mox";
2023-05-06 21:49:08 +00:00
homepage = "https://github.com/mjl-/mox";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dit7ya ];
};
}