From 9574bb165aebfba3d660040161b57e9b31a7b1e9 Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Sun, 8 Jan 2023 20:55:47 -0600 Subject: aws-sso-creds: init at 1.4.0 --- pkgs/tools/admin/aws-sso-creds/default.nix | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/tools/admin/aws-sso-creds/default.nix (limited to 'pkgs/tools/admin/aws-sso-creds') diff --git a/pkgs/tools/admin/aws-sso-creds/default.nix b/pkgs/tools/admin/aws-sso-creds/default.nix new file mode 100644 index 0000000000000..ec91c33a0448e --- /dev/null +++ b/pkgs/tools/admin/aws-sso-creds/default.nix @@ -0,0 +1,33 @@ +{ buildGoModule +, fetchFromGitHub +, lib +, makeWrapper +, xdg-utils +}: +buildGoModule rec { + pname = "aws-sso-creds"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "jaxxstorm"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-iyTdVvbqewLPLJB0LjeMB0HvLTi4B3B/HDCvgSlZoNE="; + }; + vendorSha256 = "sha256-SIsM3S9i5YKj8DvE90DxxinqZkav+1gIha1xZiDBuHQ="; + + 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"; + }; +} -- cgit 1.4.1