ec2-metadata-mock: init at 1.9.2 (#140589)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Co-authored-by: Yurii Matsiuk <ymatsiuk@users.noreply.github.com>
This commit is contained in:
parent
5e37cc3186
commit
63cdb3f7a2
2 changed files with 28 additions and 0 deletions
26
pkgs/development/tools/ec2-metadata-mock/default.nix
Normal file
26
pkgs/development/tools/ec2-metadata-mock/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "ec2-metadata-mock";
|
||||
version = "1.9.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aws";
|
||||
repo = "amazon-ec2-metadata-mock";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-k4YzG4M+r6BHc4DdAMXoUvVDTJqmzr8vIL1J6kbJBeY=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-uq0gcpFzAcz1HMwI1ZjHykWU93bV2U5kxC/G+J4ob7Q=";
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -1373,6 +1373,8 @@ with pkgs;
|
|||
|
||||
ec2-ami-tools = callPackage ../tools/virtualization/ec2-ami-tools { };
|
||||
|
||||
ec2-metadata-mock = callPackage ../development/tools/ec2-metadata-mock { };
|
||||
|
||||
ec2-utils = callPackage ../tools/virtualization/ec2-utils { };
|
||||
|
||||
exoscale-cli = callPackage ../tools/admin/exoscale-cli { };
|
||||
|
|
Loading…
Reference in a new issue