nixpkgs-suyu/pkgs/tools/admin/aws-sso-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
827 B
Nix
Raw Normal View History

2022-07-13 15:23:42 +02:00
{ buildGoModule
, fetchFromGitHub
, lib
, makeWrapper
, xdg-utils
}:
buildGoModule rec {
pname = "aws-sso-cli";
2022-12-05 13:53:02 +01:00
version = "1.9.6";
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-12-05 13:53:02 +01:00
sha256 = "sha256-3IqWmd3Qi2eVSR9vmZSTt5GLrlO4akjOGdpzndh6nT8=";
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-13 15:23:42 +02:00
postInstall = ''
wrapProgram $out/bin/aws-sso \
--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
}