about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/admin/cli53/default.nix
blob: 44752c09fb23522bdb9bc075db860fa9d1b3cfc8 (plain) (blame)
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
{ lib, buildGoModule, fetchFromGitHub, testers, cli53 }:

buildGoModule rec {
  pname = "cli53";
  version = "0.8.18";

  src = fetchFromGitHub {
    owner = "barnybug";
    repo = "cli53";
    rev = version;
    sha256 = "sha256-RgU4+/FQEqNpVxBktZUwoVD9ilLrTm5ZT7D8jbt2sRM=";
  };

  vendorSha256 = "sha256-uqBa2YrQwXdTemP9yB2otkSFWJqDxw/NAvIvlEbhk90=";

  ldflags = [
    "-s"
    "-w"
    "-X github.com/barnybug/cli53.version=${version}"
  ];

  passthru.tests.version = testers.testVersion {
    package = cli53;
  };

  meta = with lib; {
    description = "CLI tool for the Amazon Route 53 DNS service";
    homepage = "https://github.com/barnybug/cli53";
    license = licenses.mit;
    maintainers = with maintainers; [ benley ];
  };
}