biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / ec2-metadata-mock / default.nix
blob4b398629cab1ac790987767969b4067cc8f6b414
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     mainProgram = "ec2-metadata-mock";
23     homepage = "https://github.com/aws/amazon-ec2-metadata-mock";
24     license = licenses.asl20;
25     maintainers = with maintainers; [ ymatsiuk ];
26   };