1{ lib
2, buildGoModule
3, fetchFromGitHub
4, testers
5, rain
6}:
7
8buildGoModule rec {
9 pname = "rain";
10 version = "1.4.0";
11
12 src = fetchFromGitHub {
13 owner = "aws-cloudformation";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "sha256-qSzsipGXBxLkdVC4mqq4KhTtyo4+Y/TlgKbGkm1HlK8=";
17 };
18
19 vendorHash = "sha256-n1Hxd2SE8JhLqII+neOzeB94KQ7b/Gm1kXCtP8AuWYk=";
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}