2022-07-13 15:23:42 +02:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, xdg-utils
|
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "aws-sso-cli";
|
2022-11-14 20:23:29 +01:00
|
|
|
version = "1.9.5";
|
2022-06-10 02:16:13 +02:00
|
|
|
|
2022-07-13 15:23:42 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "synfinatic";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-14 20:23:29 +01:00
|
|
|
sha256 = "sha256-voCFr5rb9VBSG926SeE2cMuk1gJskoaqjvkRY/9TZFU=";
|
2022-07-13 15:23:42 +02:00
|
|
|
};
|
2022-10-03 11:14:10 +02:00
|
|
|
vendorSha256 = "sha256-f0HrQzHK1JDWmRrnqG/N4X8TG0DP/IRWd6b7QR/vyzo=";
|
2022-06-10 02:16:13 +02:00
|
|
|
|
2022-07-13 15:23:42 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2022-07-11 15:18:23 +02:00
|
|
|
|
2022-07-13 15:23:42 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/aws-sso \
|
2022-07-12 01:23:52 +02:00
|
|
|
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
|
2022-07-13 15:23:42 +02:00
|
|
|
'';
|
2022-06-10 02:16:13 +02:00
|
|
|
|
2022-07-13 15:23:42 +02: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-10 02:16:13 +02:00
|
|
|
}
|