Unverified Commit 04031fdb authored by Luke Granger-Brown's avatar Luke Granger-Brown Committed by GitHub
Browse files

Merge pull request #208952 from williamvds/add_aws_assume_role

aws-assume-role: init at 0.3.2
parents 35daab76 6d8cb115
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -15970,6 +15970,15 @@
      fingerprint = "DA03 D6C6 3F58 E796 AD26  E99B 366A 2940 479A 06FC";
    }];
  };
  williamvds = {
    email = "nixpkgs@williamvds.me";
    github = "williamvds";
    githubId = 26379999;
    name = "William Vigolo";
    keys = [{
      fingerprint = "9848 B216 BCBE 29BB 1C6A  E0D5 7A4D F5A8 CDBD 49C7";
    }];
  };
  willibutz = {
    email = "willibutz@posteo.de";
    github = "WilliButz";
+33 −0
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, buildGoPackage
}:

buildGoPackage rec {
  pname = "aws-assume-role";
  version = "0.3.2";

  outputs = [ "out" "doc" ];

  goPackagePath = "github.com/remind101/assume-role";

  src = fetchFromGitHub {
    owner = "remind101";
    repo = "assume-role";
    rev = "refs/tags/${version}";
    sha256 = "sha256-7+9qi9lYzv1YCFhUyla+5Gqs5nBUiiazhFwiqHzMFd4=";
  };

  postInstall = ''
    install -Dm444 -t $out/share/doc/$name ./go/src/${goPackagePath}/README.md
  '';

  meta = with lib; {
    description = "Easily assume AWS roles in your terminal.";
    homepage = "https://github.com/remind101/assume-role";
    license = licenses.bsd2;
    mainProgram = "assume-role";
    maintainers = with lib.maintainers; [ williamvds ];
    platforms = platforms.all;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -2820,6 +2820,8 @@ with pkgs;
  awslogs = callPackage ../tools/admin/awslogs { };
  aws-assume-role = callPackage ../tools/admin/aws-assume-role { };
  aws-lambda-rie = callPackage ../tools/admin/aws-lambda-runtime-interface-emulator { };
  aws-env = callPackage ../tools/admin/aws-env { };