Skip to content

Commit

Permalink
aws-signing-helper: init at 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pandanz authored and cole-h committed Dec 19, 2024
1 parent a20685f commit 6aac2ea
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pkgs/by-name/aw/aws-signing-helper/package.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}

0 comments on commit 6aac2ea

Please sign in to comment.