2021-10-11 16:52:03 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ec2-metadata-mock";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "1.11.1";
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aws";
|
|
|
|
repo = "amazon-ec2-metadata-mock";
|
|
|
|
rev = "v${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-H10aZB1xx2Q3cItmqmGAUiVgr+9+VloH3pzDrzP2MQw=";
|
2021-10-11 16:52:03 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
vendorSha256 = "sha256-T45abGVoiwxAEO60aPH3hUqiH6ON3aRhkrOFcOi+Bm8=";
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/{cmd,ec2-metadata-mock}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Amazon EC2 Metadata Mock";
|
|
|
|
homepage = "https://github.com/aws/amazon-ec2-metadata-mock";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ymatsiuk ];
|
|
|
|
};
|
|
|
|
}
|