at 24.05-pre 30 lines 797 B view raw
1{ lib, stdenv, buildGoModule, fetchFromGitHub, AppKit }: 2 3buildGoModule rec { 4 pname = "saml2aws"; 5 version = "2.36.12"; 6 7 src = fetchFromGitHub { 8 owner = "Versent"; 9 repo = "saml2aws"; 10 rev = "v${version}"; 11 sha256 = "sha256-egsAUaGYe06hlPUE4J4acdrfMlDEY/8g0g9KPPJyMlI="; 12 }; 13 14 vendorHash = "sha256-hdt/XhxMuR6YlvY/Qu2AjY5F75YvYLlv0LfuMwJQkl4="; 15 16 buildInputs = lib.optionals stdenv.isDarwin [ AppKit ]; 17 18 subPackages = [ "." "cmd/saml2aws" ]; 19 20 ldflags = [ 21 "-X main.Version=${version}" 22 ]; 23 24 meta = with lib; { 25 description = "CLI tool which enables you to login and retrieve AWS temporary credentials using a SAML IDP"; 26 homepage = "https://github.com/Versent/saml2aws"; 27 license = licenses.mit; 28 maintainers = [ lib.maintainers.pmyjavec ]; 29 }; 30}