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