2022-07-14 12:49:19 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, xdg-utils
|
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "aws-sso-cli";
|
|
|
|
version = "1.9.2";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "synfinatic";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "9/dZfRmFAyE5NEMmuiVsRvwgqQrTNhXkTR9N0d3zgfk=";
|
|
|
|
};
|
|
|
|
vendorSha256 = "BlSCLvlrKiubMtfFSZ5ppMmL2ZhJcBXxJfeRgMADYB4=";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cmd $out/bin/aws-sso
|
|
|
|
wrapProgram $out/bin/aws-sso \
|
2022-08-21 13:32:41 +00:00
|
|
|
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
|
2022-07-14 12:49:19 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/synfinatic/aws-sso-cli";
|
|
|
|
description = "AWS SSO CLI is a secure replacement for using the aws configure sso wizard";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ devusb ];
|
|
|
|
mainProgram = "aws-sso";
|
|
|
|
};
|
2022-06-26 10:26:21 +00:00
|
|
|
}
|