2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2024-06-20 14:57:18 +00:00
|
|
|
, buildGoModule
|
2023-03-04 12:14:45 +00:00
|
|
|
}:
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
buildGoModule rec {
|
2023-03-04 12:14:45 +00:00
|
|
|
pname = "aws-assume-role";
|
|
|
|
version = "0.3.2";
|
|
|
|
|
|
|
|
outputs = [ "out" "doc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "remind101";
|
|
|
|
repo = "assume-role";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-7+9qi9lYzv1YCFhUyla+5Gqs5nBUiiazhFwiqHzMFd4=";
|
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = null;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
go mod init github.com/remind101/assume-role
|
|
|
|
'';
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
postInstall = ''
|
2024-06-20 14:57:18 +00:00
|
|
|
install -Dm444 -t $out/share/doc/aws-assume-role README.md
|
2023-03-04 12:14:45 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-13 08:15:51 +00:00
|
|
|
description = "Easily assume AWS roles in your terminal";
|
2023-03-04 12:14:45 +00:00
|
|
|
homepage = "https://github.com/remind101/assume-role";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
mainProgram = "assume-role";
|
|
|
|
maintainers = with lib.maintainers; [ williamvds ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|