depot/third_party/nixpkgs/pkgs/development/tools/ec2-metadata-mock/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

26 lines
658 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=";
};
vendorSha256 = "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 ];
};
}