nixpkgs/pkgs/by-name/aw/aws-assume-role/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
962 B
Nix
Raw Normal View History

2024-11-04 13:23:40 +00:00
{
lib,
fetchFromGitHub,
buildGoModule,
2023-01-03 23:19:39 +00:00
}:
buildGoModule rec {
2023-01-03 23:19:39 +00:00
pname = "aws-assume-role";
version = "0.3.2";
2024-11-04 13:23:40 +00:00
outputs = [
"out"
"doc"
];
2023-01-03 23:19:39 +00:00
src = fetchFromGitHub {
owner = "remind101";
repo = "assume-role";
rev = "refs/tags/${version}";
sha256 = "sha256-7+9qi9lYzv1YCFhUyla+5Gqs5nBUiiazhFwiqHzMFd4=";
};
2024-11-04 13:26:31 +00:00
deleteVendor = true;
2024-11-04 13:26:31 +00:00
vendorHash = "sha256-NIY6w/hQQ357KHEDEHUYVLbkQKsm8FLtRf3/AbbgukA=";
patches = [
# Generate with go mod init github.com/remind101/assume-role && go mod tidy
./0001-add-go.mod-go.sum.patch
];
2023-01-03 23:19:39 +00:00
postInstall = ''
install -Dm444 -t $out/share/doc/aws-assume-role README.md
2023-01-03 23:19:39 +00:00
'';
meta = with lib; {
description = "Easily assume AWS roles in your terminal";
2023-01-03 23:19:39 +00:00
homepage = "https://github.com/remind101/assume-role";
license = licenses.bsd2;
mainProgram = "assume-role";
maintainers = with lib.maintainers; [ williamvds ];
platforms = platforms.all;
};
}