nixpkgs/pkgs/tools/admin/aws-rotate-key/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
743 B
Nix
Raw Normal View History

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 {
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
meta = with lib; {
2018-07-11 20:40:25 +00:00
description = "Easily rotate your AWS key";
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;
};
}