depot/third_party/nixpkgs/pkgs/development/tools/rain/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

37 lines
818 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, rain
}:
buildGoModule rec {
pname = "rain";
version = "1.7.5";
src = fetchFromGitHub {
owner = "aws-cloudformation";
repo = pname;
rev = "v${version}";
sha256 = "sha256-UAh84LM7QbIdxuPGN+lsbjVLd+hk8NXqwDxcRv5FAdY=";
};
vendorHash = "sha256-kd820Qe/0gN34VnX9Ge4BLeI3yySunJNjOVJXBe/M58=";
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 ];
};
}