2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-06-26 08:29:49 +01:00
|
|
|
|
2019-12-19 08:19:17 +00:00
|
|
|
buildGoModule rec {
|
2019-07-09 08:40:22 +01:00
|
|
|
pname = "saml2aws";
|
2021-02-16 12:14:30 +00:00
|
|
|
version = "2.28.0";
|
2018-06-26 08:29:49 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Versent";
|
|
|
|
repo = "saml2aws";
|
2019-12-19 08:19:17 +00:00
|
|
|
rev = "v${version}";
|
2021-02-16 12:14:30 +00:00
|
|
|
sha256 = "sha256-2t1MytLjAxhVVsWyMYcQZ9c+ox+X2OszG5mLAv8c7xE=";
|
2018-06-26 08:29:49 +01:00
|
|
|
};
|
|
|
|
|
2020-06-04 03:57:19 +01:00
|
|
|
runVend = true;
|
2021-02-16 12:14:30 +00:00
|
|
|
vendorSha256 = "sha256-8Kox01iyWhv/Fp7jHPeNXxc/K2TT1WPyWFieHZkqLho=";
|
2019-12-19 08:19:17 +00:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-12-19 08:19:17 +00:00
|
|
|
subPackages = [ "." "cmd/saml2aws" ];
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=-X main.Version=${version}
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-06-26 08:29:49 +01:00
|
|
|
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 08:29:49 +01:00
|
|
|
license = licenses.mit;
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.pmyjavec ];
|
2018-06-26 08:29:49 +01:00
|
|
|
};
|
2020-06-04 03:57:19 +01:00
|
|
|
}
|