439a6efcab
GitOrigin-RevId: f6b5bfdb470d60a876992749d0d708ed7b6b56ca
32 lines
816 B
Nix
32 lines
816 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "saml2aws";
|
|
version = "2.28.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Versent";
|
|
repo = "saml2aws";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-2t1MytLjAxhVVsWyMYcQZ9c+ox+X2OszG5mLAv8c7xE=";
|
|
};
|
|
|
|
runVend = true;
|
|
vendorSha256 = "sha256-8Kox01iyWhv/Fp7jHPeNXxc/K2TT1WPyWFieHZkqLho=";
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [ "." "cmd/saml2aws" ];
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=-X main.Version=${version}
|
|
'';
|
|
|
|
meta = with 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;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = [ lib.maintainers.pmyjavec ];
|
|
};
|
|
}
|