2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
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";
|
2020-04-01 18:45:25 +00:00
|
|
|
version = "2.25.0";
|
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}";
|
2020-04-01 18:45:25 +00:00
|
|
|
sha256 = "12aidylamrq4rvy2cfdz669lr1p20yqrshigcc5x1hrlhh9y64xc";
|
2018-06-26 07:29:49 +00:00
|
|
|
};
|
|
|
|
|
2020-04-01 18:45:25 +00:00
|
|
|
modSha256 = "1kcj5065yy52p1jy4fad5lsz3y4spqc40k1qsirm53qqixhrhvag";
|
2019-12-19 08:19:17 +00:00
|
|
|
|
|
|
|
subPackages = [ "." "cmd/saml2aws" ];
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=-X main.Version=${version}
|
|
|
|
'';
|
|
|
|
|
2018-06-26 07:29:49 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "CLI tool which enables you to login and retrieve AWS temporary credentials using a SAML IDP";
|
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;
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2018-06-26 07:29:49 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.pmyjavec ];
|
|
|
|
};
|
|
|
|
}
|