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
1,006 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";
2024-01-16 02:33:25 +01:00
version = "1.14.3";
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}";
2024-01-16 02:33:25 +01:00
hash = "sha256-6UP+5niKAdO4DgdEnTdpbUnr2BLKwAgHcEZqkgzCcqs=";
2022-07-13 15:23:42 +02:00
};
2024-01-16 02:33:25 +01:00
vendorHash = "sha256-TU5kJ0LIqHcfEQEkk69xWJZk30VD9XwlJ5b83w1mHKk=";
2022-06-10 02:16:13 +02:00
2022-07-13 15:23:42 +02:00
nativeBuildInputs = [ makeWrapper ];
2023-02-26 02:45:21 +01:00
ldflags = [
"-X main.Version=${version}"
"-X main.Tag=nixpkgs"
];
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
2023-10-19 04:25:06 +02:00
checkFlags = [
# requires network access
"-skip=TestAWSConsoleUrl|TestAWSFederatedUrl"
];
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
}