1{ lib, buildGoModule, fetchFromGitHub, testers, aws-rotate-key }:
2
3buildGoModule rec {
4 pname = "aws-rotate-key";
5 version = "1.1.0";
6
7 src = fetchFromGitHub {
8 owner = "Fullscreen";
9 repo = "aws-rotate-key";
10 rev = "v${version}";
11 sha256 = "sha256-PZ7+GC4P4bkT+DWOhW70KkhUCUjn4gIG+OKoOBSc/8c=";
12 };
13
14 vendorHash = "sha256-Asfbv7avT+L8/WNQ6NS7gFcjA9MiTCu5PzsuA/PT6/k=";
15
16 ldflags = [ "-s" "-w" ];
17
18 passthru.tests.version = testers.testVersion {
19 package = aws-rotate-key;
20 };
21
22 meta = with lib; {
23 description = "Easily rotate your AWS key";
24 homepage = "https://github.com/Fullscreen/aws-rotate-key";
25 license = licenses.mit;
26 maintainers = [ maintainers.mbode ];
27 platforms = platforms.unix;
28 };
29}