summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/mx/mx-takeover/package.nix
blob: 42aeba59f09e65a7ce0fdffd5d9ddd088dd108fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  stdenv,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule (finalAttrs: {
  pname = "mx-takeover";
  version = "0.1.1";

  src = fetchFromGitHub {
    owner = "musana";
    repo = "mx-takeover";
    tag = "v${finalAttrs.version}";
    hash = "sha256-yDQd2FEVFFsUu3wKxp26VDhGjnuXmAtxpWoKjV6ZrHA=";
  };

  vendorHash = "sha256-mJ8pVsgRM6lhEa8jtCxFhavkf7XFlBqEN9l1r0/GTvM=";

  ldflags = [
    "-s"
    "-w"
  ];

  meta = {
    description = "Tool to work with DNS MX records";
    homepage = "https://github.com/musana/mx-takeover";
    changelog = "https://github.com/musana/mx-takeover/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "mx-takeover";
    broken = stdenv.hostPlatform.isDarwin;
  };
})