2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2018-06-26 09:29:49 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "saml2aws-${version}";
|
2018-10-31 18:59:32 +01:00
|
|
|
version = "2.10.0";
|
2018-06-26 09:29:49 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/versent/saml2aws";
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=-X main.Version=${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "Versent";
|
|
|
|
repo = "saml2aws";
|
2018-10-31 18:59:32 +01:00
|
|
|
sha256 = "00m8x57fgry601w5f9dxnxdqbbqjiv7c0rsx47iv9qsp0w7l50c5";
|
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";
|
|
|
|
homepage = https://github.com/Versent/saml2aws;
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|