nixpkgs/pkgs/tools/security/saml2aws/default.nix

35 lines
874 B
Nix
Raw Normal View History

{ lib, stdenv, buildGoModule, fetchFromGitHub, AppKit }:
buildGoModule rec {
2019-07-09 07:40:22 +00:00
pname = "saml2aws";
2021-07-29 09:25:11 +00:00
version = "2.32.0";
src = fetchFromGitHub {
owner = "Versent";
repo = "saml2aws";
rev = "v${version}";
2021-07-29 09:25:11 +00:00
sha256 = "sha256-VMNK6kmMPe1Qwfb/NmMaBhtdqg59KmtiankVNZmhNdY=";
};
2020-06-04 02:57:19 +00:00
runVend = true;
2021-07-29 09:25:11 +00:00
vendorSha256 = "sha256-2tu3wSp9N+icpKvDeUgzYRLc6jXivn1D0jX/5LSgwNw=";
buildInputs = lib.optionals stdenv.isDarwin [ AppKit ];
doCheck = false;
subPackages = [ "." "cmd/saml2aws" ];
2021-08-26 06:45:51 +00:00
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;
2021-01-15 09:19:50 +00:00
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.pmyjavec ];
};
2020-06-04 02:57:19 +00:00
}