5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
26 lines
656 B
Nix
26 lines
656 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ec2-metadata-mock";
|
|
version = "1.11.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aws";
|
|
repo = "amazon-ec2-metadata-mock";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-hYyJtkwAzweH8boUY3vrvy6Ug+Ier5f6fvR52R+Di8o=";
|
|
};
|
|
|
|
vendorHash = "sha256-T45abGVoiwxAEO60aPH3hUqiH6ON3aRhkrOFcOi+Bm8=";
|
|
|
|
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 ];
|
|
};
|
|
}
|