at 22.05-pre 34 lines 874 B view raw
1{ lib, stdenv, buildGoModule, fetchFromGitHub, AppKit }: 2 3buildGoModule rec { 4 pname = "saml2aws"; 5 version = "2.33.0"; 6 7 src = fetchFromGitHub { 8 owner = "Versent"; 9 repo = "saml2aws"; 10 rev = "v${version}"; 11 sha256 = "sha256-99URhGJJKO4l+ztMGljiuNKVTYIG2iyWUMBXG1WTPdI="; 12 }; 13 14 runVend = true; 15 vendorSha256 = "sha256-IycsQWT7Puw2n8osfm1bePIXS09G7gmGE+3imJUwZgc="; 16 17 buildInputs = lib.optionals stdenv.isDarwin [ AppKit ]; 18 19 doCheck = false; 20 21 subPackages = [ "." "cmd/saml2aws" ]; 22 23 ldflags = [ 24 "-X main.Version=${version}" 25 ]; 26 27 meta = with lib; { 28 description = "CLI tool which enables you to login and retrieve AWS temporary credentials using a SAML IDP"; 29 homepage = "https://github.com/Versent/saml2aws"; 30 license = licenses.mit; 31 platforms = lib.platforms.unix; 32 maintainers = [ lib.maintainers.pmyjavec ]; 33 }; 34}