diff options
Diffstat (limited to 'pkgs/tools/security/mx-takeover/default.nix')
-rw-r--r-- | pkgs/tools/security/mx-takeover/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/security/mx-takeover/default.nix b/pkgs/tools/security/mx-takeover/default.nix new file mode 100644 index 0000000000000..88ef8fbf3ed08 --- /dev/null +++ b/pkgs/tools/security/mx-takeover/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "mx-takeover"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "musana"; + repo = "mx-takeover"; + rev = "refs/tags/v${version}"; + hash = "sha256-yDQd2FEVFFsUu3wKxp26VDhGjnuXmAtxpWoKjV6ZrHA="; + }; + + vendorHash = "sha256-mJ8pVsgRM6lhEa8jtCxFhavkf7XFlBqEN9l1r0/GTvM="; + + ldflags = [ + "-s" + "-w" + ]; + + meta = with lib; { + description = "Tool to work with DNS MX records"; + homepage = "https://github.com/musana/mx-takeover"; + changelog = "https://github.com/musana/mx-takeover/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} |