python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / ec2-metadata-mock / default.nix
blob7fd87e839be5dbb805a52ac9af23c7aa1be2f479
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   vendorSha256 = "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   };