f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
38 lines
843 B
Nix
38 lines
843 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, rain
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "rain";
|
|
version = "1.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aws-cloudformation";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-oj9/xVbb8+J4g/ul2CEs5LH7OKJdEqTTZonCHVlDc7M=";
|
|
};
|
|
|
|
vendorHash = "sha256-NcM+SdIgqtSRg7Fcwml/V73qYHcowBdOtmuF7EMSBB8=";
|
|
|
|
subPackages = [ "cmd/rain" ];
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = rain;
|
|
command = "rain --version";
|
|
version = "v${version}";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Development workflow tool for working with AWS CloudFormation";
|
|
mainProgram = "rain";
|
|
homepage = "https://github.com/aws-cloudformation/rain";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ jiegec ];
|
|
};
|
|
}
|