about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/saml2aws/default.nix
blob: 888d3bb4018ab9058c79381ecf01596545e1180c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  name = "saml2aws-${version}";
  pname = "saml2aws";
  version = "2.15.0";

  goPackagePath = "github.com/versent/saml2aws";
  goDeps = ./deps.nix;

  buildFlagsArray = ''
    -ldflags=-X main.Version=${version}
  '';

  src = fetchFromGitHub {
    rev = "v${version}";
    owner = "Versent";
    repo = "saml2aws";
    sha256 = "0pn4zdzisgan7vvgi7hp8716wsb2x33gq55c7fw1aa2qwy0bq3gp";
  };

  meta = with stdenv.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   = stdenv.lib.platforms.unix;
    maintainers = [ stdenv.lib.maintainers.pmyjavec ];
  };
}