base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / aw / aws-rotate-key / package.nix
blobb2f3a85e439e9c2b0134ca44bd2e66bc866dc07d
1 { lib, buildGoModule, fetchFromGitHub, testers, aws-rotate-key }:
3 buildGoModule rec {
4   pname = "aws-rotate-key";
5   version = "1.2.0";
7   src = fetchFromGitHub {
8     owner = "Fullscreen";
9     repo = "aws-rotate-key";
10     rev = "v${version}";
11     sha256 = "sha256-fYpgHHOw0k/8WLGhq+uVOvoF4Wff6wzTXuN8r4D+TmU=";
12   };
14   vendorHash = "sha256-gXtTd7lU9m9rO1w7Fx8o/s45j63h6GtUZrjOzFI4Q/o=";
16   ldflags = [ "-s" "-w" ];
18   passthru.tests.version = testers.testVersion {
19     package = aws-rotate-key;
20     command = "AWS_SHARED_CREDENTIALS_FILE=/dev/null aws-rotate-key --version";
21   };
23   meta = with lib; {
24     description = "Easily rotate your AWS key";
25     homepage = "https://github.com/Fullscreen/aws-rotate-key";
26     license = licenses.mit;
27     maintainers = [ maintainers.mbode ];
28     mainProgram = "aws-rotate-key";
29   };