at 23.05-pre 38 lines 852 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4, testers 5, rain 6}: 7 8buildGoModule rec { 9 pname = "rain"; 10 version = "1.2.0"; 11 12 src = fetchFromGitHub { 13 owner = "aws-cloudformation"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "sha256-6YKZy6sdy1Yi2cDaLMA54GBTZ9uPhYi5Cq5QqCGbD5k="; 17 }; 18 19 vendorSha256 = "sha256-e3R8+xarofbx3Ky6JIfDbysTQETCUaQj/QmzAiU7fZk="; 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 platforms = platforms.unix; 37 }; 38}