nixpkgs/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.

44 lines
1006 B
Nix
Raw Normal View History

2022-07-13 13:23:42 +00:00
{ buildGoModule
, fetchFromGitHub
, lib
, makeWrapper
, xdg-utils
}:
buildGoModule rec {
pname = "aws-sso-cli";
2024-01-16 01:33:25 +00:00
version = "1.14.3";
2022-06-10 00:16:13 +00:00
2022-07-13 13:23:42 +00:00
src = fetchFromGitHub {
owner = "synfinatic";
repo = pname;
rev = "v${version}";
2024-01-16 01:33:25 +00:00
hash = "sha256-6UP+5niKAdO4DgdEnTdpbUnr2BLKwAgHcEZqkgzCcqs=";
2022-07-13 13:23:42 +00:00
};
2024-01-16 01:33:25 +00:00
vendorHash = "sha256-TU5kJ0LIqHcfEQEkk69xWJZk30VD9XwlJ5b83w1mHKk=";
2022-06-10 00:16:13 +00:00
2022-07-13 13:23:42 +00:00
nativeBuildInputs = [ makeWrapper ];
2023-02-26 01:45:21 +00:00
ldflags = [
"-X main.Version=${version}"
"-X main.Tag=nixpkgs"
];
2022-07-13 13:23:42 +00:00
postInstall = ''
wrapProgram $out/bin/aws-sso \
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
2022-07-13 13:23:42 +00:00
'';
2022-06-10 00:16:13 +00:00
2023-10-19 02:25:06 +00:00
checkFlags = [
# requires network access
"-skip=TestAWSConsoleUrl|TestAWSFederatedUrl"
];
2022-07-13 13:23:42 +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-10 00:16:13 +00:00
}