about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/infracost/default.nix
blob: abe1872c67fd97afac37ba861505d65976f1b6af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, buildGoModule, fetchFromGitHub, terraform }:

buildGoModule rec {
  pname = "infracost";
  version = "0.9.2";

  src = fetchFromGitHub {
    owner = "infracost";
    rev = "v${version}";
    repo = "infracost";
    sha256 = "sha256-TM+7Am5hoiRk/StAwCh5yAN1GKv3oPun38pvhArBoJg=";
  };

  vendorSha256 = "sha256-6sMtM7MTFTDXwH8AKr5Dxq8rPqE92xzcWqBTixcPi+8=";

  checkInputs = [ terraform ];
  checkPhase = "make test";

  meta = with lib; {
    description = "Cloud cost estimates for Terraform in your CLI and pull requests";
    homepage = "https://github.com/infracost/infracost";
    license = [ licenses.asl20 ];
    maintainers = [ maintainers.davegallant ];
  };
}