1{ buildGoModule, lib, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "chamber";
5 version = "2.10.12";
6
7 src = fetchFromGitHub {
8 owner = "segmentio";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-KbKOaUwJEy/mT59yW0VhZ3MIWkXarCRY8cyNlaI51mQ=";
12 };
13
14 CGO_ENABLED = 0;
15
16 vendorSha256 = "sha256-ENsKm3D3URCrRUiqqebkgFS//2h9SlLbAQHdjisdGlE=";
17
18 ldflags = [ "-s" "-w" "-X main.Version=v${version}" ];
19
20 meta = with lib; {
21 description =
22 "A tool for managing secrets by storing them in AWS SSM Parameter Store";
23 homepage = "https://github.com/segmentio/chamber";
24 license = licenses.mit;
25 maintainers = with maintainers; [ kalekseev ];
26 };
27}