1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "mx-takeover";
8 version = "0.1.1";
9
10 src = fetchFromGitHub {
11 owner = "musana";
12 repo = "mx-takeover";
13 rev = "refs/tags/v${version}";
14 hash = "sha256-yDQd2FEVFFsUu3wKxp26VDhGjnuXmAtxpWoKjV6ZrHA=";
15 };
16
17 vendorHash = "sha256-mJ8pVsgRM6lhEa8jtCxFhavkf7XFlBqEN9l1r0/GTvM=";
18
19 ldflags = [
20 "-s"
21 "-w"
22 ];
23
24 meta = with lib; {
25 description = "Tool to work with DNS MX records";
26 homepage = "https://github.com/musana/mx-takeover";
27 changelog = "https://github.com/musana/mx-takeover/releases/tag/v${version}";
28 license = licenses.mit;
29 maintainers = with maintainers; [ fab ];
30 };
31}