410b979fe2
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
38 lines
850 B
Nix
38 lines
850 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, rain
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "rain";
|
|
version = "1.3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aws-cloudformation";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-34BHWvXwwdiFotVlV8U6HSkRy9TvJ6DLIC0Mpz//C3w=";
|
|
};
|
|
|
|
vendorHash = "sha256-h/9a+o/jiNH2b1XIkbnKXSpCsBtyIhdOGyTNHU+Q/bA=";
|
|
|
|
subPackages = [ "cmd/rain" ];
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = rain;
|
|
command = "rain --version";
|
|
version = "v${version}";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A development workflow tool for working with AWS CloudFormation";
|
|
homepage = "https://github.com/aws-cloudformation/rain";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ jiegec ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|