nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 testers,
6 rain,
7}:
8
9buildGoModule rec {
10 pname = "rain";
11 version = "1.23.1";
12
13 src = fetchFromGitHub {
14 owner = "aws-cloudformation";
15 repo = "rain";
16 rev = "v${version}";
17 sha256 = "sha256-B6eaoyYROF8LB5vO1qMqXYtBF8vvJE8xygarW2+GSpA=";
18 };
19
20 vendorHash = "sha256-ASiC/SXwaJ1xHlhPcVS9JsGcfRP6/fonq+ZIBehZgho=";
21
22 subPackages = [ "cmd/rain" ];
23
24 ldflags = [
25 "-s"
26 "-w"
27 ];
28
29 passthru.tests.version = testers.testVersion {
30 package = rain;
31 command = "rain --version";
32 version = "v${version}";
33 };
34
35 meta = with lib; {
36 description = "Development workflow tool for working with AWS CloudFormation";
37 mainProgram = "rain";
38 homepage = "https://github.com/aws-cloudformation/rain";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ jiegec ];
41 };
42}