at 23.11-beta 37 lines 818 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4, testers 5, rain 6}: 7 8buildGoModule rec { 9 pname = "rain"; 10 version = "1.6.0"; 11 12 src = fetchFromGitHub { 13 owner = "aws-cloudformation"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "sha256-sAqWVGzEQJwf7ioQjOFs+1hAn69LmDCMSu0ym59aDsU="; 17 }; 18 19 vendorHash = "sha256-xmpjoNfz+4d7Un0J6yEhkQG2Ax8hL0dw4OQmwrKq3QI="; 20 21 subPackages = [ "cmd/rain" ]; 22 23 ldflags = [ "-s" "-w" ]; 24 25 passthru.tests.version = testers.testVersion { 26 package = rain; 27 command = "rain --version"; 28 version = "v${version}"; 29 }; 30 31 meta = with lib; { 32 description = "A development workflow tool for working with AWS CloudFormation"; 33 homepage = "https://github.com/aws-cloudformation/rain"; 34 license = licenses.asl20; 35 maintainers = with maintainers; [ jiegec ]; 36 }; 37}