Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / ec2-metadata-mock / default.nix
blob968656fa9da2dbf62e3b3a6b7fda7c67a3a6dd7e
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "ec2-metadata-mock";
5   version = "1.11.2";
7   src = fetchFromGitHub {
8     owner = "aws";
9     repo = "amazon-ec2-metadata-mock";
10     rev = "v${version}";
11     sha256 = "sha256-hYyJtkwAzweH8boUY3vrvy6Ug+Ier5f6fvR52R+Di8o=";
12   };
14   vendorHash = "sha256-T45abGVoiwxAEO60aPH3hUqiH6ON3aRhkrOFcOi+Bm8=";
16   postInstall = ''
17     mv $out/bin/{cmd,ec2-metadata-mock}
18   '';
20   meta = with lib; {
21     description = "Amazon EC2 Metadata Mock";
22     homepage = "https://github.com/aws/amazon-ec2-metadata-mock";
23     license = licenses.asl20;
24     maintainers = with maintainers; [ ymatsiuk ];
25   };