aws-assume-role: init at 0.3.2

This commit is contained in:
williamvds 2023-01-03 23:19:39 +00:00
parent f9f23dc52d
commit 6d8cb115c9
No known key found for this signature in database
GPG Key ID: 7A4DF5A8CDBD49C7
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ lib
, fetchFromGitHub
, buildGoPackage
}:
buildGoPackage rec {
pname = "aws-assume-role";
version = "0.3.2";
outputs = [ "out" "doc" ];
goPackagePath = "github.com/remind101/assume-role";
src = fetchFromGitHub {
owner = "remind101";
repo = "assume-role";
rev = "refs/tags/${version}";
sha256 = "sha256-7+9qi9lYzv1YCFhUyla+5Gqs5nBUiiazhFwiqHzMFd4=";
};
postInstall = ''
install -Dm444 -t $out/share/doc/$name ./go/src/${goPackagePath}/README.md
'';
meta = with lib; {
description = "Easily assume AWS roles in your terminal.";
homepage = "https://github.com/remind101/assume-role";
license = licenses.bsd2;
mainProgram = "assume-role";
maintainers = with lib.maintainers; [ williamvds ];
platforms = platforms.all;
};
}

View File

@ -2820,6 +2820,8 @@ with pkgs;
awslogs = callPackage ../tools/admin/awslogs { };
aws-assume-role = callPackage ../tools/admin/aws-assume-role { };
aws-lambda-rie = callPackage ../tools/admin/aws-lambda-runtime-interface-emulator { };
aws-env = callPackage ../tools/admin/aws-env { };