depot/third_party/nixpkgs/pkgs/tools/security/saml2aws/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

31 lines
834 B
Nix

{ lib, stdenv, buildGoModule, fetchFromGitHub, AppKit }:
buildGoModule rec {
pname = "saml2aws";
version = "2.36.8";
src = fetchFromGitHub {
owner = "Versent";
repo = "saml2aws";
rev = "v${version}";
sha256 = "sha256-eBgyjiospcBzUCMSMRgL3V5YyybD6aqt7gQZ7VfrmZY=";
};
vendorHash = "sha256-wepAJ92IZbUZHO0HiX+JOtQ/WKydCImzHytXRUhjhAU=";
buildInputs = lib.optionals stdenv.isDarwin [ AppKit ];
subPackages = [ "." "cmd/saml2aws" ];
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 ];
};
}