5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
34 lines
709 B
Nix
34 lines
709 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "mox";
|
|
version = "0.0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mjl-";
|
|
repo = "mox";
|
|
rev = "v${version}";
|
|
hash = "sha256-f5/K6cPqJJkbdiVCNGOTd9Fjx2/gvSZCxeR6nnEaeJw=";
|
|
};
|
|
|
|
# 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";
|
|
homepage = "https://github.com/mjl-/mox";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dit7ya ];
|
|
};
|
|
}
|