587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
38 lines
844 B
Nix
38 lines
844 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, rain
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "rain";
|
|
version = "1.8.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aws-cloudformation";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-AI7P5X9LNjXUQBkYTE0PCQ0xvK1CscVjnauoNVYp3GY=";
|
|
};
|
|
|
|
vendorHash = "sha256-CD7W+y/vQwWe7JFTl8+Zl7IKE88+Mu+Vvdr7Q1S+90w=";
|
|
|
|
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";
|
|
mainProgram = "rain";
|
|
homepage = "https://github.com/aws-cloudformation/rain";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ jiegec ];
|
|
};
|
|
}
|