depot/third_party/nixpkgs/pkgs/tools/security/saml2aws/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

31 lines
827 B
Nix

{ lib, stdenv, buildGoModule, fetchFromGitHub, AppKit }:
buildGoModule rec {
pname = "saml2aws";
version = "2.36.15";
src = fetchFromGitHub {
owner = "Versent";
repo = "saml2aws";
rev = "v${version}";
sha256 = "sha256-lfA+D3NsrnYwqX1hfC3TOQKEBW/65QGUjzYxe2RVVSM=";
};
vendorHash = "sha256-3jne2an651tlyXgmmQ28R/bwsfaQzI4rC+4WJhyDA2E=";
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";
mainProgram = "saml2aws";
homepage = "https://github.com/Versent/saml2aws";
license = licenses.mit;
maintainers = [ lib.maintainers.pmyjavec ];
};
}