2020-12-29 15:07:52 +00:00
|
|
|
{ buildGoModule, lib, fetchFromGitHub, fetchpatch }:
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "chamber";
|
2020-12-29 15:07:52 +00:00
|
|
|
version = "2.9.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "segmentio";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-12-29 15:07:52 +00:00
|
|
|
sha256 = "eOMY9P/fCYvnl6KGNb6wohykLA0Sj9Ti0L18gx5dqUk=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2020-12-29 15:07:52 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/segmentio/chamber/commit/3aeb416cdf4c232552b653262e37047fc13b1f02.patch";
|
|
|
|
sha256 = "cyxNF9ZP4oG+1sfX9yWZCyntpAvwYUh5BzTirZQGejc=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
# set the version. see: chamber's Makefile
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X main.Version=v${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
2020-10-27 00:29:36 +00:00
|
|
|
"A tool for managing secrets by storing them in AWS SSM Parameter Store";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/segmentio/chamber";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kalekseev ];
|
|
|
|
};
|
|
|
|
}
|