14 src = fetchFromGitHub {
18 sha256 = "sha256-sj+6EnpPPsl/MWMxan6dXIqJO8NePcwnVFrTCcM1SbQ=";
21 vendorHash = "sha256-mi2Jqiy1T1fcuasrIXPkhu8VTmq78WFOK/d3i7CXkhw=";
23 nativeBuildInputs = [ installShellFiles ];
24 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ AppKit ];
32 "-X main.Version=${version}"
35 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
36 installShellCompletion --cmd saml2aws \
37 --bash <($out/bin/saml2aws --completion-script-bash) \
38 --zsh <($out/bin/saml2aws --completion-script-zsh)
42 description = "CLI tool which enables you to login and retrieve AWS temporary credentials using a SAML IDP";
43 mainProgram = "saml2aws";
44 homepage = "https://github.com/Versent/saml2aws";
45 license = licenses.mit;
46 maintainers = [ lib.maintainers.pmyjavec ];