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

33 lines
816 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
2019-07-09 09:40:22 +02:00
pname = "saml2aws";
2021-02-16 13:14:30 +01:00
version = "2.28.0";
src = fetchFromGitHub {
owner = "Versent";
repo = "saml2aws";
rev = "v${version}";
2021-02-16 13:14:30 +01:00
sha256 = "sha256-2t1MytLjAxhVVsWyMYcQZ9c+ox+X2OszG5mLAv8c7xE=";
};
2020-06-04 04:57:19 +02:00
runVend = true;
2021-02-16 13:14:30 +01:00
vendorSha256 = "sha256-8Kox01iyWhv/Fp7jHPeNXxc/K2TT1WPyWFieHZkqLho=";
doCheck = false;
subPackages = [ "." "cmd/saml2aws" ];
buildFlagsArray = ''
-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 10:19:50 +01:00
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.pmyjavec ];
};
2020-06-04 04:57:19 +02:00
}