2021-07-14 22:03:04 +00:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, AppKit }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "saml2aws";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "2.36.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Versent";
|
|
|
|
repo = "saml2aws";
|
|
|
|
rev = "v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
sha256 = "sha256-YoQ22AJOpNW7WVy9lCb/KzZ7/CkOMHSsgzh0gAfnqP0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
vendorHash = "sha256-hbsURcFOLYP//1UXmxWfnNEb6PqJDqwAjJc5Au5+BOQ=";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ AppKit ];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
subPackages = [ "." "cmd/saml2aws" ];
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.Version=${version}"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "CLI tool which enables you to login and retrieve AWS temporary credentials using a SAML IDP";
|
|
|
|
homepage = "https://github.com/Versent/saml2aws";
|
|
|
|
license = licenses.mit;
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = [ lib.maintainers.pmyjavec ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|