nixpkgs/pkgs/tools/admin/chamber/default.nix

28 lines
698 B
Nix
Raw Normal View History

2021-05-10 09:20:00 +00:00
{ buildGoModule, lib, fetchFromGitHub }:
2020-12-27 21:43:24 +00:00
2020-08-19 15:17:35 +00:00
buildGoModule rec {
pname = "chamber";
2021-06-08 09:09:38 +00:00
version = "2.10.1";
2020-08-19 15:17:35 +00:00
src = fetchFromGitHub {
owner = "segmentio";
repo = pname;
rev = "v${version}";
2021-06-08 09:09:38 +00:00
sha256 = "sha256-nIIoU+iz2uOglNaqGIhQ2kUjpFOyOx+flXXwu02UG6Y=";
2020-08-19 15:17:35 +00:00
};
2021-05-10 09:20:00 +00:00
CGO_ENABLED = 0;
2020-12-27 21:43:24 +00:00
2021-06-08 09:09:38 +00:00
vendorSha256 = "sha256-XpLLolxWu9aMp1cyG4dUQk4YtknbIRMmBUdSeyY4PNk=";
2020-08-19 15:17:35 +00:00
2021-05-10 09:20:00 +00:00
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=v${version}" ];
2020-08-19 15:17:35 +00:00
meta = with lib; {
description =
"A tool for managing secrets by storing them in AWS SSM Parameter Store";
2020-08-19 15:17:35 +00:00
homepage = "https://github.com/segmentio/chamber";
license = licenses.mit;
maintainers = with maintainers; [ kalekseev ];
};
}