aws-signing-helper: init at 1.3.0
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
{
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
bash,
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "aws-signing-helper";
|
||||
version = "1.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aws";
|
||||
repo = "rolesanywhere-credential-helper";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-vY8ZJnNV5xt8qxp2sCLYoavcggjS/+LHJysREtCgCJE=";
|
||||
};
|
||||
vendorHash = "sha256-QKKgBIocJoGbfs78PxNBLBi4KTDPtSuhzvsb6OBhNWQ=";
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
export SHELL=${bash}/bin/bash
|
||||
go test ./cmd/...
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ bash ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/rolesanywhere-credential-helper $out/bin/aws_signing_helper
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "AWS Signing Helper for IAM Roles Anywhere";
|
||||
homepage = "https://github.com/aws/rolesanywhere-credential-helper";
|
||||
changelog = "https://github.com/aws/rolesanywhere-credential-helper/releases/tag/v${version}";
|
||||
license = lib.licenses.asl20;
|
||||
mainProgram = "aws_signing_helper";
|
||||
maintainers = with lib.maintainers; [ pandanz ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user