2022-07-14 12:49:19 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, xdg-utils
|
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "aws-sso-cli";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "1.14.0";
|
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}";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-4LgTAoPly551vzZ8StF01+zpBGAO7fpcyq3IrSrDhlg=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
2023-10-19 13:55:26 +00:00
|
|
|
vendorHash = "sha256-YZ9/eqKZ0PDHZL6f3J7Obfq34Xk3swU/gGwzWJ2QsKs=";
|
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
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.Version=${version}"
|
|
|
|
"-X main.Tag=nixpkgs"
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
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
|
|
|
}
|