mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
34 lines
791 B
Nix
34 lines
791 B
Nix
{ 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;
|
|
};
|
|
}
|