2022-04-17 00:52:48 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, aws-rotate-key }:
|
2018-07-11 20:40:25 +00:00
|
|
|
|
2022-04-17 00:52:48 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "aws-rotate-key";
|
2022-04-17 00:52:48 +00:00
|
|
|
version = "1.0.8";
|
2018-07-11 20:40:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Fullscreen";
|
|
|
|
repo = "aws-rotate-key";
|
2022-04-17 00:52:48 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-5kV87uQDSc/qpm79Pd2nXo/EcbMlhZqFYaw+gJQa2uo=";
|
2018-07-11 20:40:25 +00:00
|
|
|
};
|
|
|
|
|
2022-04-17 00:52:48 +00:00
|
|
|
vendorSha256 = "sha256-h7tmJx/Um1Cy/ojiFjoKCH/LcOwhGU8ADb5WwmrkkJM=";
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = aws-rotate-key;
|
|
|
|
};
|
2018-07-11 20:40:25 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-07-11 20:40:25 +00:00
|
|
|
description = "Easily rotate your AWS key";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/Fullscreen/aws-rotate-key";
|
2018-07-11 20:40:25 +00:00
|
|
|
license = licenses.mit;
|
2022-04-17 00:52:48 +00:00
|
|
|
maintainers = [ maintainers.mbode ];
|
2018-07-11 20:40:25 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|