nixpkgs/pkgs/development/tools/rain/default.nix
2024-04-14 03:00:08 +00:00

39 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 ];
};
}