depot/third_party/nixpkgs/pkgs/tools/admin/aws-sso-creds/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

33 lines
813 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
, makeWrapper
, xdg-utils
}:
buildGoModule rec {
pname = "aws-sso-creds";
version = "1.5.0";
src = fetchFromGitHub {
owner = "jaxxstorm";
repo = pname;
rev = "v${version}";
sha256 = "sha256-/zvXVDVlnDcgYpnumN7owN2fHexvQu5D4LvNmuQNS+w=";
};
vendorHash = "sha256-mJj5ilH4crlL5jesvg0y3RZaMgqlrenWgJApxUw6jEk=";
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/aws-sso-creds \
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
'';
meta = with lib; {
homepage = "https://github.com/jaxxstorm/aws-sso-creds";
description = "Get AWS SSO temporary creds from an SSO profile";
license = licenses.mit;
maintainers = with maintainers; [ lafrenierejm ];
mainProgram = "aws-sso-creds";
};
}