ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
35 lines
735 B
Nix
35 lines
735 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "mox";
|
|
version = "0.0.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mjl-";
|
|
repo = "mox";
|
|
rev = "v${version}";
|
|
hash = "sha256-BigxFlMkagw82Lkz1xMMSwAJyfSdSbeQr6G6rCaomNg=";
|
|
};
|
|
|
|
# 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";
|
|
homepage = "https://github.com/mjl-/mox";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dit7ya ];
|
|
};
|
|
}
|