2021-07-12 17:53:14 +00:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, AppKit }:
|
2018-06-26 07:29:49 +00:00
|
|
|
|
2019-12-19 08:19:17 +00:00
|
|
|
buildGoModule rec {
|
2019-07-09 07:40:22 +00:00
|
|
|
pname = "saml2aws";
|
2024-05-29 05:30:17 +00:00
|
|
|
version = "2.36.16";
|
2018-06-26 07:29:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Versent";
|
|
|
|
repo = "saml2aws";
|
2019-12-19 08:19:17 +00:00
|
|
|
rev = "v${version}";
|
2024-05-29 05:30:17 +00:00
|
|
|
sha256 = "sha256-qe4a8dmanXRji7hLtlTYrIOuZ8lHwJtDI6dSFVYwcIo=";
|
2018-06-26 07:29:49 +00:00
|
|
|
};
|
|
|
|
|
2024-05-29 05:30:17 +00:00
|
|
|
vendorHash = "sha256-OdkgTBsoBjLajx/ueII3o1ldU7+fysTbdTp7tG9eMng=";
|
2019-12-19 08:19:17 +00:00
|
|
|
|
2021-07-12 17:53:14 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ AppKit ];
|
|
|
|
|
2019-12-19 08:19:17 +00:00
|
|
|
subPackages = [ "." "cmd/saml2aws" ];
|
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.Version=${version}"
|
|
|
|
];
|
2019-12-19 08:19:17 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-06-26 07:29:49 +00:00
|
|
|
description = "CLI tool which enables you to login and retrieve AWS temporary credentials using a SAML IDP";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "saml2aws";
|
2019-12-19 08:19:17 +00:00
|
|
|
homepage = "https://github.com/Versent/saml2aws";
|
2018-06-26 07:29:49 +00:00
|
|
|
license = licenses.mit;
|
2021-01-15 09:19:50 +00:00
|
|
|
maintainers = [ lib.maintainers.pmyjavec ];
|
2018-06-26 07:29:49 +00:00
|
|
|
};
|
2020-06-04 02:57:19 +00:00
|
|
|
}
|