2020-03-27 08:33:21 +01:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2018-06-26 09:29:49 +02:00
|
|
|
|
2019-12-19 09:19:17 +01:00
|
|
|
buildGoModule rec {
|
2019-07-09 09:40:22 +02:00
|
|
|
pname = "saml2aws";
|
2020-07-02 20:48:42 +02:00
|
|
|
version = "2.26.2";
|
2018-06-26 09:29:49 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Versent";
|
|
|
|
repo = "saml2aws";
|
2019-12-19 09:19:17 +01:00
|
|
|
rev = "v${version}";
|
2020-07-02 20:48:42 +02:00
|
|
|
sha256 = "0y5gvdrdr6i9spdwsxvzs1bxs32icxpkqxnglp1bf4gglc580d87";
|
2018-06-26 09:29:49 +02:00
|
|
|
};
|
|
|
|
|
2020-06-04 04:57:19 +02:00
|
|
|
runVend = true;
|
|
|
|
vendorSha256 = "1kzihyx44sx6php4z58fzy6c3g0y713939yzxpgk3n03snn2x8sf";
|
2019-12-19 09:19:17 +01:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-12-19 09:19:17 +01:00
|
|
|
subPackages = [ "." "cmd/saml2aws" ];
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=-X main.Version=${version}
|
|
|
|
'';
|
|
|
|
|
2018-06-26 09:29:49 +02: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 09:19:17 +01:00
|
|
|
homepage = "https://github.com/Versent/saml2aws";
|
2018-06-26 09:29:49 +02:00
|
|
|
license = licenses.mit;
|
2019-02-17 14:00:33 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2018-06-26 09:29:49 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.pmyjavec ];
|
|
|
|
};
|
2020-06-04 04:57:19 +02:00
|
|
|
}
|