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

37 lines
897 B
Nix
Raw Normal View History

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