about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/admin/aws-assume-role/default.nix
blob: 7a09c8d2571c132621fab1319ae911f8ec593783 (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
30
31
32
33
{ 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;
  };
}